Entities with CADControl - Web CAD SDK

This forum is for questions, comments and discussions on Web CAD SDK, an ASP.NET control for viewing CAD drawings in the Internet, Intranet, SharePoint, Office 365 and other online HTML5 enabled technologies.

Moderators: SDS, support, admin

Post Reply
dmvcad
Posts: 10
Joined: 24 Jul 2014, 01:28

Entities with CADControl - Web CAD SDK

Post by dmvcad » 29 Aug 2014, 00:58

I am reviewing the component CADControl but I dont know how read the entities of a DWG drawing. I need that when I select each entity shows me your attributes, for example: text,name,handle.

How i can handle the entities with your attributes for this control?

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

Re: Entities with CADControl - Web CAD SDK

Post by support » 29 Aug 2014, 15:01

Hello,

DrawController.GetSelectedEntityInfo() method returns attributes of the selected entity: handle, name, text as the DrawController.EntityInfo structure. This method has the following parameters:

id - the drawing ID,
x - X-coordinate of the screen point,
y - Y-coordinate of the screen point.

The drawing ID is stored in the DrawingState.Id field.


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

dmvcad
Posts: 10
Joined: 24 Jul 2014, 01:28

Re: Entities with CADControl - Web CAD SDK

Post by dmvcad » 29 Aug 2014, 17:37

Hi,

Ok, thanks for your information. Can you give me an example with the method DrawController.GetSelectedEntityInfo() ?
Is there any documentation of methods for the CADControl?

Daniel

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

Re: Entities with CADControl - Web CAD SDK

Post by support » 29 Aug 2014, 18:50

Hello,

See the demo projects in the \Selection\Demo.VS20xx folders as an example. There is no detailed description of the CADControl API because it will be developed further. API Reference for CADControl will be available in the future.


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

dmvcad
Posts: 10
Joined: 24 Jul 2014, 01:28

Re: Entities with CADControl - Web CAD SDK

Post by dmvcad » 29 Aug 2014, 19:56

Hi,

Thanks,
I was reviewing the demo projects but in the code, I dont see the DrawController.GetSelectedEntityInfo() method, Can you help me in the location of this method into the code?

Daniel

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

Re: Entities with CADControl - Web CAD SDK

Post by support » 16 Sep 2014, 13:36

Hello,

DrawController.GetSelectedEntityInfo() method is not invoked directly in the demo projects.

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

Post Reply