• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 15
    Registered: ‎05-31-2012
    Accepted Solution

    GetEntity with Filter

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

    How to GetEntity with filter?

    Please use plain text.
    *Expert Elite*
    Posts: 6,460
    Registered: ‎06-29-2007

    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
    -------------------------------------------------------------------------
    Please use plain text.
    *Expert Elite*
    chiefbraincloud
    Posts: 736
    Registered: ‎02-13-2008

    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
    Please use plain text.
    Contributor
    Posts: 15
    Registered: ‎05-31-2012

    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,

    Please use plain text.
    Distinguished Contributor
    Posts: 701
    Registered: ‎01-24-2003

    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.

    Please use plain text.