Page 1 of 1
Entities with CADControl - Web CAD SDK
Posted: 29 Aug 2014, 00:58
by dmvcad
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?
Re: Entities with CADControl - Web CAD SDK
Posted: 29 Aug 2014, 15:01
by support
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
Re: Entities with CADControl - Web CAD SDK
Posted: 29 Aug 2014, 17:37
by dmvcad
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
Re: Entities with CADControl - Web CAD SDK
Posted: 29 Aug 2014, 18:50
by support
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
Re: Entities with CADControl - Web CAD SDK
Posted: 29 Aug 2014, 19:56
by dmvcad
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
Re: Entities with CADControl - Web CAD SDK
Posted: 16 Sep 2014, 13:36
by support
Hello,
DrawController.GetSelectedEntityInfo() method is not invoked directly in the demo projects.
Mikhail