Return Selected Entities

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
totalfitca
Posts: 2
Joined: 29 Oct 2008, 09:15

Return Selected Entities

Post by totalfitca » 29 Oct 2008, 09:19

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

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

Re: Return Selected Entities

Post by support » 30 Oct 2008, 10:27

Hello!
  1. What exactly entities do you need to parse?
  2. Do you need to parse them by code or by visual elements?
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

totalfitca
Posts: 2
Joined: 29 Oct 2008, 09:15

Re: Return Selected Entities

Post by totalfitca » 06 Nov 2008, 07:24

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...

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

Re: Return Selected Entities

Post by support » 06 Nov 2008, 10:58

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply