.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deleting entities when selected

1 REPLY 1
SOLVED
Reply
Message 1 of 2
SRSDS
412 Views, 1 Reply

Deleting entities when selected

I have instances where I need to delete entitities that are contained within a selection.

 

Being removed from the selection I get an eLockChangeInProgress error in ImpliedSelectionChanged. 

ImpliedSelectionChanged is hit because they are deleted and removed from the selection. 

Is this an error I can disregard?

 

Another error I haven't yet pinpointed is:

Document “Drawing1.dwg” has a command in progress.

Hit enter or cancel or [Retry]

What is this error? I can't think what might be causing it.

1 REPLY 1
Message 2 of 2
SRSDS
in reply to: SRSDS

Solved. I removed the entities being deleted from the selection before starting the procedure.

ed.SetImpliedSelection(objids)

Almost a stupid post now that I write this solution. I've been trying all sorts of things to avoid having to delete them.

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report