Community
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<jangrenov1826> wrote in messageHi
href="news:6200572@discussion.autodesk.com">news:6200572@discussion.autodesk.com...
I have successfully used this code (simplified) with AutoCAD 2008: Public
Module InstallMyMenu Sub Main() Dim Acadapp As
Autodesk.AutoCAD.Interop.AcadApplication On Error Resume Next
Acadapp = GetObject(, "Autocad.Application.17.1") If Err.Number
<> 0 Then MsgBox"No AutoCAD found") Exit sub end
if ... some further code end sub End Module However
the same code using Acadapp = GetObject(, "Autocad.Application.18.0")
(referencing AutoCAD 2010 of course) does not work. Does anybody have an idea
why? BR Jan Grenov Edited by: jangrenov1826 on Jun 12, 2009 10:51
AM
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<jangrenov1826> wrote in messageFound
href="news:6200646@discussion.autodesk.com">news:6200646@discussion.autodesk.com...
answer myself (after a couple of hours spent on Google) AcadApp =
Getobject(,"Autocad.Application.18.0") should actually be .. AcadApp =
Getobject(,"Autocad.Application.18") Then everything works out fine
:-)