Jump to content

object selection


salman

Recommended Posts

In event reactor functions dealing with object appended, object erased events. When ever a new object is added or erased I want to re number all the existing objects in the drawing. but for this I need to select all the text (lying on a specific layer) objects in the drawing. SSGET is not allowd to be used in a reactor so how canI select the text objects any suggestion? Any code sample would be a big help.

 

Thanks.

Link to comment
Share on other sites

Perhaps use a VL method:

 

(vlax-for lay (vla-get-layouts
               (vla-get-ActiveDocument
                 (vlax-get-acad-object)))
 (vlax-for Obj (vla-get-Block lay)
   ... do something...

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