CADimport Line Selection Function or properties

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
fmonteiro
Posts: 6
Joined: 09 Apr 2014, 18:32

CADimport Line Selection Function or properties

Post by fmonteiro » 10 Apr 2014, 16:37

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.

support
Posts: 3254
Joined: 30 Mar 2005, 11:36
Contact:

Re: CADimport Line Selection Function or properties

Post by support » 14 Apr 2014, 16:57

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply