How to locate graphical objet in viewer?

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
yannick
Posts: 18
Joined: 16 Apr 2008, 12:43

How to locate graphical objet in viewer?

Post by yannick » 16 Apr 2008, 13:16

Hello,

I need following interactions between graphicals objets in viewer and the datas of my application :
- select graphical objets by using handles
- get handles of selected graphicals objets

My application must host viewer, allow user to move in the map and to select graphical objet. I use only dwg/dxf file.

Which component of CADImport .net can i use?
CADViewerControl allow to move in the map, but by code how i get handles of selected graphical objet make by user ?
And conversely, by code how can i make select some graphical objets in viewer by using handles?

Best regards, yannick.

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

Re: How to locate graphical objet in viewer?

Post by support » 30 Apr 2008, 11:19

Hello Yannick,

We recommend to use library of CAD Import .NET directly. It means that there is no need to use cadViewerControl.
Acoordingly to the described in your post tasks we would suggest you to test ViewerDemo and ImportDemo.
Every CADEntity contains Handle property, but we recommend to use KeyEnt property.

CADEntity.KeyEnt Property - Gets or sets a key chooses an entity from CADEntityCollection.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply