The entitiesI am trying to get data from are not from Acad MEP, they are from a product that Autodesk bought last year called CADmep. There is no API for it except for a scripting interface. I can do quite a bit with that but I think I can do better if I can just figure a few things out. If you're curious about what I'm working on you can watch the 2 minute video demo here: http://www.youtube.com/watch?v=QxjKepUHAa8
The app has been a real time-saver for me an I've given it away to a several dozen other users of the software an received a lot of positive feedback. If I can get access to the list data for the entities I think I can make it much more efficient.
In that case, your only option is to P/Invoke acdbEntGet(), which is the native ObjectARX counterpart to LISP's (entget) function.
You can search this group for 'acdbEntGet()' and you will find code that shows how to do it, but you will need to also P/Invoke acdbGetAdsName(), and need to be careful with the EntryPoint= part of that method's [DllImport] attribute, because it is platform-specific (there are different entry point symbols for 32 and 64 bit platforms), and you will need to use the entry point from the major release you're working with (e.g., R17, R18, or R19). You can use
Depends.exe to find the entry point symbol for acdbGetAdsName().
The SetValue part was lifted directly from the Wamsley post I referenced in the previous post. I'm still cutting and pasting a lot of the stuff I find difficult to understand and then kinda trying to figure out what it does and why.
The reason I asked about that, is because, I had made some comments in another thread regarding Kean's blog and the
fact opinion that I didn't think it was the best way to learn about C# programming, and this is a good example case in point.
My advice is to try to spend as much time learning about the language and the .NET framework, as you spend trying to do things with the AutoCAD managed API. While it may be possible for some to learn the language 'on the fly' while trying to wrestle with a very complicated API, that's not true for most, and IMO, isn't the best way to learn a programming language and framework.