Page 1 of 1
Return Selected Entities
Posted: 29 Oct 2008, 09:19
by totalfitca
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
Re: Return Selected Entities
Posted: 30 Oct 2008, 10:27
by support
Hello!
- What exactly entities do you need to parse?
- Do you need to parse them by code or by visual elements?
Sergey.
Re: Return Selected Entities
Posted: 06 Nov 2008, 07:24
by totalfitca
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
Posted: 06 Nov 2008, 10:58
by support
We recommend to use CADImage.SelectExt method:
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
);
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.