The type initializer for '< Module >' threw an exception. Inner Exception : The C++ module failed to load during process initialization.
String MyDWGFilePath = @"\\Server\SharedFolder\Projects\File1.dwg"; DocumentCollection dm = Application.DocumentManager; Document doc = null; if(File.Exists(MyDWGFilePath)) { doc = dm.Open(MyDWGFilePath, false); Application.DocumentManager.MdiActiveDocument = doc; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)