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?
Entities with CADControl - Web CAD SDK
Moderators: SDS, support, admin
Re: Entities with CADControl - Web CAD SDK
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
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
Chat support on Skype: cadsofttools.support
Re: Entities with CADControl - Web CAD SDK
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
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
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
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
Chat support on Skype: cadsofttools.support
Re: Entities with CADControl - Web CAD SDK
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
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
Hello,
DrawController.GetSelectedEntityInfo() method is not invoked directly in the demo projects.
Mikhail
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
Chat support on Skype: cadsofttools.support