Page 1 of 1

CADimport Line Selection Function or properties

Posted: 10 Apr 2014, 16:37
by fmonteiro
Hello
My question is about Entity properties.
For example i draw 3 lines on the cadImageFld, after that i want to remove a specific line, then how the software knows about this selected entity ?
Is there any specific properties of the Entity(Line) that i can differenciate from the other lines?

I see in the "EditorDemo" sample that there is a MouseDown, MouseUp and MouseMove, but I do not understand where/how I can detect if an entity was selected.

Re: CADimport Line Selection Function or properties

Posted: 14 Apr 2014, 16:57
by support
Hello,

You can detect if some entity was selected using CADEntity.Selected property. It returns true if the entity was selected, otherwise, false. There is also CADImage.SelectedEntities property that stores a list of selected entities.


Mikhail.