Jump to content

Help needed on using reactors to query erased entities


Recommended Posts

Posted

Hi,

 

I need to make my lisp code do some stuff when certain types of entities are erased from the drawing. That means I need to query the entity which is about to be erased.

As I can see there are several reactor types, which deal with the erasing of elements, but most of them allows you to retrieve the enitity name only after it is deleted and therefore too late to access any other information (I am looking for info such as like insertion point, block names etc.)

 

When I use the :vlr-commandWillStart on the "Erase" command

in combination with the (ssgetfirst) this gives me access to the desired info.

BUT only if the user selects the elements for erasing prior to giving the "erase" command. If the users working sequence is to first give the "erase" command and then pick/select what should be erased then it does not work.

 

Can somebody guide me to a method (reactor or other) for picking up the entities also when they are selected by the user "inside the erase operation" ?

 

BR

Carsten

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