Jump to content

Recommended Posts

Posted

Hello,

 

This will be simple for one of the regular pros.

 

I have this one line of code.

 

setq ss (ssget '((0 . "INSERT")(66 . 1)))

 

Works perfect for creating a selection set of blocks with attributes.

 

I want it to include all NESTED blocks with attributes as well.

 

I thought the ":V" parameter would work, but I am struggling with the syntax.

It may even require a recursive routine.

 

Your expertise would really help.

 

Thank you.

Posted

Code:

(sssetfirst nil(ssget "_x" '((0 . "INSERT")(66 . 1))))

 

Try the following code to get the DXf for Block Attributes and upload them here to check

them out .

 

Code:

(setq ss (car(entget(entsel))))

Regards,

 

Tharwat

Posted

Not as simple as you may think, - actually very difficult.

 

ssget has no robust functionality for selecting nested items, there are such modes as ":N" but these are highly temperamental indeed. If I remember Tim Wiley attempted to write an alternative to ssget for nested items, but the selection process would be hundreds of lines of code in itself...

 

Lee

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