Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling an AutoCAD script from OLE Automation...
Message
General information
Forum:
CAD
Category:
Other
Miscellaneous
Thread ID:
00410680
Message ID:
00410917
Views:
18
>My original question also apply to the a .lsp file. How can I call a Lisp program form VFP via OLE?
>
>I already post this question on the AutoCad News group.
>BTW thank you Roi for the small LISP code to call a script.

AcadX mentions something called SendCommand. But I don't know whether that is VB, Acad or an API call. I looked quickly but couldn't find it anywhere.

>
>>I'm not sure you can with R14. www.acadx.com has a vb class called VLAX (Visual Lisp ActiveX) that can run a lisp function (look under the downloads section). I don't know what versions it works on and it may not work with R14, but it might be worth a look. If it does work you could use that to call a .lsp that runs the script.
>>
>>;;; Run a script.
>>;;; Just pass the script name as an argument, you probably should
>>;;; pass the full path.
>>;;; ex: (RunScript "c://My Happy Places//Some.scr")
>>(defun RunScript (ScriptName)
>> (command ScriptName)
>>) ;_End of defun
>>
>>You might want to hop on over to the AutoDesk NewsGroups and ask them. Someone might know of an easy way to do it.
>>
>>hth
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform