.NET

Reply
Contributor
Posts: 15
Registered: ‎05-31-2012
Message 1 of 5 (429 Views)
Accepted Solution

GetEntity with Filter

429 Views, 4 Replies
06-14-2012 01:14 AM

How to GetEntity with filter?

*Expert Elite*
Alfred.NESWADBA
Posts: 8,459
Registered: ‎06-29-2007
Message 2 of 5 (427 Views)

Re: GetEntity with Filter

06-14-2012 01:24 AM in reply to: Nk_long

Hi,

 

does >>>this<<< help?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
*Expert Elite*
chiefbraincloud
Posts: 750
Registered: ‎02-13-2008
Message 3 of 5 (400 Views)

Re: GetEntity with Filter

06-14-2012 08:57 AM in reply to: Alfred.NESWADBA

I believe this would be more appropriate:

http://through-the-interface.typepad.com/through_the_interface/2008/07/conditional-sel.html

Dave O.                                                                  Sig-Logos32.png
Contributor
Posts: 15
Registered: ‎05-31-2012
Message 4 of 5 (371 Views)

Re: GetEntity with Filter

06-14-2012 08:29 PM in reply to: chiefbraincloud

Thanks. With SelectionSet I know how to create filter with a SelectionFilter. I want to find method for GetEntity. I found it in sample from Mr Kean WalmSley. We use PromptEntityOptions.AddAllowedClass(). But it's only filter for class, not all properties like color, linetype, layer...

See detail at here >>>>>>> this link<<<<<<<<<

 

Regard,

Distinguished Contributor
Posts: 701
Registered: ‎01-24-2003
Message 5 of 5 (347 Views)

Re: GetEntity with Filter

06-15-2012 08:21 AM in reply to: Nk_long

GetEntity will return a PromptEntityResult which contains the ObjectID of the entity selected. You can then open it for read and examine the ent's properties. If it doesn't meet your criteria, you can prompt them to select again.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community