Message 1 of 8
loadmodule acismobj18.dbx with RealDWG 2011
Not applicable
04-18-2010
11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using .Net 3.5 to develop a WPF application, using RealDWG 2011 to read and write DWG files.
In the Tips and Techniques section of RealDWG 2011 Readme, it says 'first link to the Imaging Support Module (ISM) DBX, then have your application explicitly load that DBX file (for example, using AcRxSynamicLinker::loadModule()) before attempting to call any of the raster APIs."
So, my first question is how to link to the ISM DBX?
I tried the following code to load the module acismobj18.dbx ( Is it the ISM DBX? ) before creating RasterImageDef instance:
Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.LoadModule("acismobj18.dbx", false, true);
and get one error message box and one exception. The exception is:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Autodesk.AutoCAD.Runtime.Interop.CheckBool(Boolean returnValue)
at Autodesk.AutoCAD.Runtime.DynamicLinker.LoadModule(String fileName, Boolean printIt, Boolean asCmd)
The error message box is: This application has failed to start because ac1st17.dll was not found. Re-installing the application may fix this problem.
Debugging with vs.net will NOT have this error message box, but will have the exception when loading module.
Any help is very appreciated.
Bo
In the Tips and Techniques section of RealDWG 2011 Readme, it says 'first link to the Imaging Support Module (ISM) DBX, then have your application explicitly load that DBX file (for example, using AcRxSynamicLinker::loadModule()) before attempting to call any of the raster APIs."
So, my first question is how to link to the ISM DBX?
I tried the following code to load the module acismobj18.dbx ( Is it the ISM DBX? ) before creating RasterImageDef instance:
Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.LoadModule("acismobj18.dbx", false, true);
and get one error message box and one exception. The exception is:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Autodesk.AutoCAD.Runtime.Interop.CheckBool(Boolean returnValue)
at Autodesk.AutoCAD.Runtime.DynamicLinker.LoadModule(String fileName, Boolean printIt, Boolean asCmd)
The error message box is: This application has failed to start because ac1st17.dll was not found. Re-installing the application may fix this problem.
Debugging with vs.net will NOT have this error message box, but will have the exception when loading module.
Any help is very appreciated.
Bo