TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: duotu007 on October 29, 2014, 01:18:55 AM
-
(vla-getinterfaceobject (vlax-get-acad-object) "ScriptControl") ;win7 64bit + cad 2012 >> error
; Error: error Automation. There was a problem loading the application
(vla-getinterfaceobject (vlax-get-acad-object) "ScriptControl") ;win7 32bit + cad 2010 >> ok
;#<vla-object iscriptcontrol 064fdc48>
-
Yea, we will need much more than that.
Peruse lee's site on this
http://www.lee-mac.com/open.html
-
It looks like you do not have a 64-bit version of the control installed, only 32-bit.
-
Maybe you will took a look here (http://bytes.com/topic/visual-basic-net/answers/890888-active-x-error-createobject-scriptcontrol).
In my opinion:
If you installed a 32bit version of CAD on 64bit system,for example, AutoCAD 2006,you can run
(vlax-create-object "Scriptcontrol") ,it works.
means: Win 64 bit+ CAD 64 bit >> nil
Win 64 bit+ CAD 32 bit >> <vla-object iscriptcontrol XXXX>
Win 32 bit+ CAD 32 bit >> <vla-object iscriptcontrol XXXX>
-
win7(64bit) + cad 2012(64bit) >> error
win7(32bit) + cad 2010(32bit) >> OK
This is the script itself?