...
- This will Launch the Ares directly. There is no need to access application object as in In-Process, because AcadApplication is itself application object.The properties that are associated with the Application object reflect the properties of the main application window. The methods control the loading or listing of the currently loaded external applications and interface objects.
- If Ares is already running, use version dependent or Independent ProgIDs as Below.
- For Marshal use System.Runtime.InteropServices .
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
AcadApplicationAcadDocument NewDrawing; NewDrawing = (AcadApplication)app.Application.ActiveDocument; |
- Following code accesses the display preferences.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
IAcadPreferencesIAcadPreferencesDisplay AcadPref; AcadPref = app.Application.Preferences.Display; int Size = AcadPref.CursorSize; |
...
The ActiveX/COM applications running on AutoCAD platform can be easily migrated to ARES Commander by making minimal changes.
- Replace AutoCAD ActiveX/COM assemblies by ARES .NET assembliesARES ActiveX/COM(OdaX_x.xx_xx and ARESC.exe) assemblies.
- Replace Autodesk.AutoCAD by Teigha in source code.
- Replace AutoCAD to PCAD_AC_X and AXDBLiB to PCAD_DB_X in source code.
...