antistar Posted October 20, 2010 Posted October 20, 2010 Hi to all, I ask for help for the return of a SSGET. How do I select all the circles corresponding to a layer within a block? Can anyone better this? (ssget "_X" (list (cons 0 "Circle") (cons 8 "layername"))) Thanks in advance. Quote
Lee Mac Posted October 20, 2010 Posted October 20, 2010 ssget cannot select nested objects (with the exception of "_:N" which doesn't really work), you would have to make a selection of blocks, then dig through the block definitions to find circles matching your criteria. Alternatively, you could use the likes of nentsel, or nentselp Lee Quote
antistar Posted October 20, 2010 Author Posted October 20, 2010 Lee, Thanks for your clarifications. Quote
Sweety Posted October 20, 2010 Posted October 20, 2010 Thank you scamaru. A very interesting thread. hope that all people share their opinion with it. Comeon GUYs. Quote
David Bethel Posted October 20, 2010 Posted October 20, 2010 You may be able to select 'em, but whatcha' going do with 'em? -David Quote
Sweety Posted October 20, 2010 Posted October 20, 2010 I tried the following codes but It won't give the required details things like (if included in a block) circles, lines, texts......... (setq ent (nentsel "\n Select block :")) And here is the return of codes ..... ( (10.2093 14.6532 0.0) ((1.0 0.0 0.0) (0.0 1.0 0.0) (0.0 0.0 1.0) (9.51602 14.1144 0.0)) ( )) So how we could handle all entities that are included in the block ? Many thanks Quote
Lee Mac Posted October 20, 2010 Posted October 20, 2010 Before I go any further, have you read the help files on the use of nentsel? Quote
Sweety Posted October 20, 2010 Posted October 20, 2010 Before I go any further, have you read the help files on the use of nentsel? All right mr Lee. I have read that before, and I think here is the main issue of it which is related to the access of a definition as mentioned in Cad's help. Prompts the user to select an object (entity) by specifying a point, and provides access to the definition data contained within a complex object Regards, Quote
Lee Mac Posted October 20, 2010 Posted October 20, 2010 Did your read the whole section, the answer to your previous question is half way through the help file. Quote
Sweety Posted October 20, 2010 Posted October 20, 2010 So there is no chance to descuss the issue ? I think it's really very interesting matter. Thanks a lot. Quote
Lee Mac Posted October 20, 2010 Posted October 20, 2010 So there is no chance to descuss the issue ? I think it's really very interesting matter. Thanks a lot. Of course there is, I'm just trying to help you find your own answer. Quote
Sweety Posted October 21, 2010 Posted October 21, 2010 Of course there is, I'm just trying to help you find your own answer. It's very kind of you to do that for me and for the others as well. Thousands of THANKS dear Lee. Regards Quote
Lee Mac Posted October 21, 2010 Posted October 21, 2010 As a nudge in the right direction... For a complex entity selection, such as that belonging to a block, nentsel returns a list containing: 1) Entity Name of Selected Entity 2) Picked Point 3) Transformation Matrix encoding how the corresponding entity contained in the block definition may be transformed to represent the selected entity. 4) Owner entity Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.