Message 1 of 7
how to open a dwg file
Not applicable
09-07-2010
07:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I try to write a program in C# to open dwg files from a dirctory and do some work after open it such as zome extend and save them.
To open file I wrote bellow code:
DocumentCollection
dm = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager;
dm.Open(
"C:\\test.dwg",true,"");
But its show an error when its run : Its say: Invalid execution context.
Is any idea how to open cad files by c# please? Many thanks
in advance.