Message 1 of 2
Xref Capture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello -
I am new to the AutoCAD API and I am looking for some clarity/guidance. I am a c# developer and have experience working with SolidWorks API's, so my comments/questions will stem from that background.
- Does the AutoCAD API provide an interface to access External References without the need for the following:
- Have AutoCAD installed
- Have AutoCAD open
- SolidWorks uses what is called a Document Manager API (I see the DocumentManager in the ApplicationServices.Application namespace but cannot get it to properly open a .dwg file).
- What are the interop (or other .dll) files that are required if you can deploy without AutoCAD?
- Are they included in the API install through ObjectARX?
- How can the database file be opened to capture Xrefs, properly?
- Right now I am using the following code to attempt to open a .dwg file
- Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open({path});
- I receive an error that states the CLR detected an invalid program.
- Note that the VM I am testing on does not have AutoCAD installed (currently).
- Right now I am using the following code to attempt to open a .dwg file
The end goal is to be able to scan a large group of .dwg files (on any machine, with or without AutoCAD installed) and then capture their External Reference structures to be able to better visualize the depth of directory usage in large data sets.
Any help is greatly appreciated!