Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling an AutoCAD script from OLE Automation...
Message
Information générale
Forum:
CAD
Catégorie:
Autre
Divers
Thread ID:
00410680
Message ID:
00411294
Vues:
17
Roi correct me if I am wrong but some thing is missing in your function.
When you call the Lisp command you are missing the "_Script" command.
What if we do a lisp like this?

(RunScript "c://My Happy Places//Some.scr")
(defun RunScript (ScriptName)
(command "_script" ScriptName)


Is it true that AutoCAD will run the ACAD.lsp if it found in the same dir of the .dwf file?

>>>
>>>;;; 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform