i'm trying write method zoom extents of drawing in autocad using c#.net , latest version of objectarx. googled example of doing , found post has following method:
[commandmethod("zoomextenttest")] public static void zoomextenttest() { //using invokemember support .net 3.5 object acadobject = application.acadapplication; acadobject.gettype().invokemember("zoomextents", bindingflags.invokemethod, null, acadobject, null); } when tried copy code got error saying autodesk.autocad.applicationservices.application has no defintion acadapplication i'm guessing got replaced else don't know i'd find such replacement or how i'd rewrite above method work current autocad .net api.
looks you're missing acmgd.dll reference, can check it?
if plan use autocad console, it's not possible: com api not available on autocad console nor autocad i/o
Comments
Post a Comment