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

Loading dwg file without loading AutoCAD

4 REPLIES 4
Reply
Message 1 of 5
aarabi
405 Views, 4 Replies

Loading dwg file without loading AutoCAD

I created a .net webform and referenced acmgd.dll and acdbmgd.dll . I used db.ReadDwgFile method to load a dwg file. When I run my app an unexpected exception was thrown. "file or assembly name acdbmgd or one of its dependencies was not found".
Can't I load a dwg file and extract block attribute outside of AutoCAD environment?
Can anyone help me?:(
4 REPLIES 4
Message 2 of 5
smcclure
in reply to: aarabi

While I am not 100% sure, I am pretty sure that .NET ObjectARX app would not be happy in a WebForm. The process for using .NET extensions is to compile them into a DLL and call NETLOAD.

I have seen people do similar to what you are thinking of with COM automation, though. In this process, they would start AutoCAD in the application, and then execute com calls to it. A guy here said that it was possible with the C API as well.

Also, please post any relevant code. Message was edited by: smcclure
Message 3 of 5
Anonymous
in reply to: aarabi

acmgd.dll and acdbmsd.dll are ObjectARX's .NET API, which is meant to run
inside Acad. So, to your question, the answer is no, you cannot use it
without running Acad.

wrote in message news:5202682@discussion.autodesk.com...
I created a .net webform and referenced acmgd.dll and acdbmgd.dll . I used
db.ReadDwgFile method to load a dwg file. When I run my app an unexpected
exception was thrown. "file or assembly name acdbmgd or one of its
dependencies was not found".
Can't I load a dwg file and extract block attribute outside of AutoCAD
environment?
Can anyone help me?:(
Message 4 of 5
Anonymous
in reply to: aarabi

To read DWG files outside of AutoCAD (w/o AutoCAD) you should use RealDWG
(aka ObjectDBX); this toolkit must be licensed from Autodesk. If AutoCAD is
installed on the machine, you can use COM automation.

Dan

wrote in message news:5202682@discussion.autodesk.com...
I created a .net webform and referenced acmgd.dll and acdbmgd.dll . I used
db.ReadDwgFile method to load a dwg file. When I run my app an unexpected
exception was thrown. "file or assembly name acdbmgd or one of its
dependencies was not found".
Can't I load a dwg file and extract block attribute outside of AutoCAD
environment?
Can anyone help me?:(
Message 5 of 5
aarabi
in reply to: aarabi

so, I must use COM automation or RealDWG . Is it the final answer Daniel? what is the main reason for this reference problem? (file or assembly name acdbmgd or one of its
dependencies was not found) Can't we solve it? let me know, have these assemblies full implementation of methods or they are just COM wrappers?

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