TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: duotu007 on October 29, 2014, 01:18:55 AM

Title: This program can not run, help me a look! Thanks
Post 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>
Title: Re: This program can not run, help me a look! Thanks
Post by: ChrisCarlson on October 29, 2014, 08:01:04 AM
Yea, we will need much more than that.

Peruse lee's site on this

http://www.lee-mac.com/open.html
Title: Re: This program can not run, help me a look! Thanks
Post by: owenwengerd on October 29, 2014, 12:37:41 PM
It looks like you do not have a 64-bit version of the control installed, only 32-bit.
Title: Re: This program can not run, help me a look! Thanks
Post by: highflyingbird on November 01, 2014, 11:16:48 AM
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>
Title: Re: This program can not run, help me a look! Thanks
Post by: duotu007 on November 07, 2014, 09:11:33 PM
win7(64bit) + cad 2012(64bit)  >> error
win7(32bit) + cad 2010(32bit)  >> OK
This is the script itself?