.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PromptEntityOptions - Only select certain object types

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
589 Views, 3 Replies

PromptEntityOptions - Only select certain object types

I'd like to use the Editor.GetEntity method to have the user select an entity. I'd like to set the PromptEntityOptions.AddAllowedClass method to only allow the user to select entities that are Lines, Text, or Polylines. I not sure how to use the AddAllowedClass method and would like some help.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

It helps if you note what language you're using.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5588356@discussion.autodesk.com...
I'd like to use the Editor.GetEntity method to have the user select an entity. I'd like to set the PromptEntityOptions.AddAllowedClass method to only allow the user to select entities that are Lines, Text, or Polylines. I not sure how to use the AddAllowedClass method and would like some help.
Message 3 of 4
Anonymous
in reply to: Anonymous

A C# example here uses it.

http://through-the-interface.typepad.com/through_the_interface/2007/04/index.html

Regards - Nathan
Message 4 of 4
Anonymous
in reply to: Anonymous

If you are using VB the equivalent of "typeof" is "GetType".

Regards - Nathan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost