Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

Lee,

 

Thanks for your clarifications.

Posted

Thank you scamaru.

 

A very interesting thread. hope that all people share their opinion with it.

 

Comeon GUYs.

Posted

You may be able to select 'em, but whatcha' going do with 'em? -David

Posted

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

Posted

Before I go any further, have you read the help files on the use of nentsel?

Posted
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,

Posted

Did your read the whole section, the answer to your previous question is half way through the help file.

Posted

So there is no chance to descuss the issue ? :(

 

I think it's really very interesting matter.

 

Thanks a lot.

Posted
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.

Posted
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

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...