添加ssget以选择特定B
你好如何将选择集添加到这些代码中以获得特定块?
(if (setq ss (ssget "_:L" '((0 . "INSERT"))))
(progn
非常感谢。 2 ...................... but not always needed. :wink:
Now it is new to me.
Great work pBe. thank you so much.
But that's not what I am looking forward .
As you for sure know that the second part of my codes is to change the color of circles in Block Definitions , but I want to change the color of circles
in the selected Blocks only by the use of "ssget" to be able to select two to three blocks at the same time .
Appreciated a lot. Lol what's with the 'M:CAD' (you) or 'TH:CAD' (Tharwat) for your variables? You guys must think the same way...
Back to the original question -
Note that you won't be able to change specific Inserts since you are modifying the block definition - which will be applied to all Inserts for that definition.
You will need to add a filtered selection using ssget, perhaps with the DXF Group 2 as pBe correctly states, then, when iterating through the set, check that you haven't already processed the block name by checking against a list of processed block names, and if not, retrieve the block definition and perform your modifications, then when done, add the block name to the list of blocks already processed.
Lee I am sorry , it's not clear enough yet.
many thanks.
Which part isn't clear?
页:
[1]
2