startuphaa.blogg.se

Autodesk autocad 2013 command unhandled exception 1
Autodesk autocad 2013 command unhandled exception 1













autodesk autocad 2013 command unhandled exception 1

HostApplicationServices' WorkingDatabase (which was null) so we will go from the During tests it proved unreliable to rely Public string AddNumbers( int arg1, double arg2) withthe result of the addition, just to use

autodesk autocad 2013 command unhandled exception 1

A function to add two numbers and create a DocumentManager.MdiActiveDocument Įd.WriteMessage( "\nTest command executed." ) A simple test command, just to see that commandsĪpplication.

autodesk autocad 2013 command unhandled exception 1

Here are the steps I used to get this working…įirst we create a Class Library for our in-process component with references to the usual acmgd.dll and acdbmgd.dll assemblies, adding the following C# code: So… in spite of my initial doubtful reaction I decided to give it a try. You could populate AutoCAD user variables or create a file for the calling application to read but such approaches are cumbersome. NET executable via COM and then launch a command which can then safely interface with AutoCAD in-process via its managed API.Īnd yes, this technique is fine if you don’t want to return results, but has limitations if you do. Michael’s referring to a technique used in this previous post, which shows how to launch AutoCAD from a. NET back to COM? I have used SendCommand in certain instances where return values were not needed. NET function (via COM) that could return a value from. This question came in recently by email from Michael Fichter of Superstructures Engineers and Architects:Ĭould you suggest an approach that would enable me to drive a.















Autodesk autocad 2013 command unhandled exception 1