Return Selected Entities
Moderators: SDS, support, admin
-
- Posts: 2
- Joined: 29 Oct 2008, 09:15
Return Selected Entities
Hi when Edit mode is enabled and I select some text entites on the screen, the property grid displays these selected entities, but where can I get the selected entites to parse?
Thanks
Thanks
Re: Return Selected Entities
Hello!
- What exactly entities do you need to parse?
- Do you need to parse them by code or by visual elements?
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 2
- Joined: 29 Oct 2008, 09:15
Re: Return Selected Entities
I would like a user to select entites such as Text or Blocks and then be able to parse the selected entities through code,retrieving all atucad specific properties of each object such as Handle, Name, co-ords, acad object type, etcc...
Re: Return Selected Entities
We recommend to use CADImage.SelectExt method:
Selects an entity of the CAD image at the specified point.
Parameters
x - an X coordinate of the point at which the entity to be selected is located.
y - an Y coordinate of the point at which the entity to be selected is located.
clearPrevSelection - clears selection of objects if true; adds to selected if false
visualSelect - visual select entity
Return Value
A CADEntity located at the specified point, or null if nothing is located at the specified point.
Sergey.
Selects an entity of the CAD image at the specified point.
Code: Select all
public CADEntity SelectExt(
int x,
int y,
bool clearPrevSelection,
bool visualSelect
);
x - an X coordinate of the point at which the entity to be selected is located.
y - an Y coordinate of the point at which the entity to be selected is located.
clearPrevSelection - clears selection of objects if true; adds to selected if false
visualSelect - visual select entity
Return Value
A CADEntity located at the specified point, or null if nothing is located at the specified point.
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support