.NET

Reply
Distinguished Contributor
chuck.han
Posts: 123
Registered: ‎09-27-2004
Message 1 of 2 (92 Views)

ADT managed DLLs

92 Views, 1 Replies
11-02-2006 03:27 PM
I have two issues. They are AutoCAD issues as opposed to ADT issues so I'm posting here:

1. AecBaseMgd.dll is provided in OMF 2007. If I write code against it and execute it in a DWG with ADT objects (so the ADT object enablers are loaded), no problem. However, if I try to execute the code BEFORE the object enablers are loaded, AutoCAD blows up with some kind of assertion failure. So my first question is: is there any way to force the enablers to load using .NET code?

2. To get finer granular control, I would also like to reference AecArchMgd.dll which is included in the ADT 2007 but not OMF 2007. This gives me access to ADT doors, windows, etc, and not just the AEC geo object. However, if I try to execute code that manipulates these objects (doors, windows, etc.), I get the same assertion failure EVEN IF I've got a DWG with these objects in it. Any ideas here?

I've submitted these issues to ADN, but I'm wondering if any of the gurus reading this board have any insight.

thanks in advance, Chuck
Distinguished Contributor
chuck.han
Posts: 123
Registered: ‎09-27-2004
Message 2 of 2 (92 Views)

Re: ADT managed DLLs

11-03-2006 07:56 AM in reply to: chuck.han
I think I've found a solution to (1), but it depends on how .NET sees custom objects:

I can check to see if an Entity is of type "...ImpCurve" before executing a method that is dependent on Aec*Mgd.dll. That way, the Aec*Mgd DLLs won't load unless there are ADT objects in the DWG (which implies that that ADT object enablers have been loaded, right?)

The question is: do custom objects also look like "...ImpCurves" because if they do, my test will blow up AutoCAD when it tries to reference an Aec*Mgd DLL without the ADT object enablers necessarily being loaded...
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.