TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jlogan02 on February 21, 2019, 05:05:17 PM
-
Disregard that last post.
-
Hard to advise without seeing the rest of the code, but try:
oIsoLayer
(vla-add oLayers isoLayerName
) )
-
I decided to tackle the code you helped me with last week.
I've got it to do most everything except again the color.
(defun c:demo
( / e i l n s x
) )
)
)
)
)
)
It will create the copy of the layer and add the suffix "-56" and set the color of the layer to 56. Same thing, I can't get it to set the objects color to 56. Which seems weird to me. If it's moving the objects to the new layer and the new layers color is set to 56, shouldn't the objects color be 56? It will work with a block, but not lines, text and other entities.
-
Looking at the color property of the block says it's color is red, but on the screen it's 56, while the color assigned in the layer dialog is 56 for all selected entities.
-
If it's moving the objects to the new layer and the new layers color is set to 56, shouldn't the objects color be 56? It will work with a block, but not lines, text and other entities.
Only if the object colour is set to ByLayer.
-
I just changed...
to
and all is fine. I swear I already tried that. Thanks for the nudge. Again. Lee