.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
C# Equivalent of MyEntityTy pe::desc() ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Sorry for the rather basic question but I'm coming from the ObjectARX side and now trying to get some code going in C#. I've got the DLL / NETLOAD mechanism working just fine, so I can get AutoCAD to execute my custom commands.
What I'm struggling with is trying to make a list of either entity types (Type class) or class types (RXClass class). I would like to pass a list of such types to another method. Although I can declare a List<Type> or List<RXClass> with no problems, I can't add the types I want to it.
In ObjectARX I would use MyEntityType::desc() to get an AcRxClass pointer that I could use. I've tried Type.GetType("Autodesk.AutoCAD.DatabaseServices.En
I don't see why I should have to have / create an actual object of the desired type just to get hold of that type - MyEntityType::desc() doesn't require an actual object of that type, so I was hoping for a C# equivalent.
Can someone point me in the right direction, please?
Solved! Go to Solution.
Re: C# Equivalent of MyEntityTy pe::desc() ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: C# Equivalent of MyEntityTy pe::desc() ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ahhhhhh... brilliant! Thank you so much. That was driving me bonkers! I didn't know about typeof() (I've not done much C#... obviously)... you can bet I'll remember that one in the future.
