Gordon Price
Usenet Archive
- Joined
- Jul 14, 2003
- Messages
- 203
- Reaction score
- 0
I am trying to use Reactors to manage layers for various object types. I understand that you can't/don't want to use (command ...) in a reactor, so I am trying to figure out how to build layers with activeX instead. In the code below, everything works but the last part. There is a PlotStyle called 100% available, I can set it manually. If I do and use a get to look at the plotstyle I get 100%. I also looked and the PlotStyleName Property is just supposed to be a string. Any suggestions?
Thanks,
Gordon
(setq mylayer (vla-add (vla-get-layers (vla-get-activeDocument (vlax-get-acad-object))) "A-ANNO-TEXT")) (vla-put-color mylayer "30") (vla-put-lineweight mylayer acLnWt018) (vla-put-plotstyleName mylayer "100%")
Thanks,
Gordon
(setq mylayer (vla-add (vla-get-layers (vla-get-activeDocument (vlax-get-acad-object))) "A-ANNO-TEXT")) (vla-put-color mylayer "30") (vla-put-lineweight mylayer acLnWt018) (vla-put-plotstyleName mylayer "100%")