Jump to content

Create Boundary in lisp from items on layer included nested blocks


manddarran

Recommended Posts

I am trying to create a boundary using lisp, but if the items are in a block it wont work. So I am trying to figure out how to do it using the extend ssget functions.

 

here is the one that works when the items are not in a block:

(Command "-boundary" "a" "b" "n" (ssget "_X" '((8 . "*GRID*"))) "" "" pt "")

Here are the extended ssget items I just can't get them combined.

 

   ; (ssget "_:S") - selecting a single object
   ; (ssget "_:E") - selecting all objects crossing the selection box (can be also combined to e.g. (ssget "_:E:S")
   ; (ssget "_:N") - selecting objects including nested/child objects - e.g. with block references
   ; (ssget "_:D") - duplicate objects counted separately (2x selected object = 2 selections)
   ; (ssget "_:L") - stops users from selecting objects on locked layers
   ; (ssget "_:P") - rejects selection of viewports
   ; (ssget "_+.") - allows window selection even in the single selection mode - e.g. (ssget "_+.:E:S") (may not work in some localized versions of AutoCAD) 

Link to comment
Share on other sites

Try to use NENTSEL function instead of SSGET.

 

Regards,

 

I hate to ask, but I am not sure how to do that. I should clarify that I am trying to get items that are also not in a block just all items that are on a layer that contains the word "grid"

Link to comment
Share on other sites

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