Hi,
Does anyone know what the syntax would be to invoke the Action Recorder to run X named actm file using LISP?
|
Hi,
Does anyone know what the syntax would be to invoke the Action Recorder to run X named actm file using LISP?
(not even breaking into a sweat!)Code:(command "<my action name>")
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
thanks Robert, it's ironic I should be using a LISP routine to manage the inflexibility of REVIT's titleblocks which is subsequently exported to DWG.
So far I have activated a script in the routine but it seems to disregard the contents of the script once loaded and continues with the LISP routine. It shows the LISP routine "loading" the Script in the command dialogue but nothing happens. Is there a setting I'm missing to ensure it executes the contents of the script? Here is the dialogue and code.
Scripting and Purging >> F:\REVIT LOCAL FILES\1210.DWG. Please wait...script
Enter script file name <\Folders\sd\My Documents\Drawing4.scr>: W:/AUTOCAD/SCRIPTS/Titlechange.scr
****IT SHOULD BE EXECUTING THE SCRIPT HERE BUT > ******
Command:
Scripting and Purging >> F:\REVIT LOCAL FILES\1220.DWG. Please wait...script
Enter script file name <\Folders\sd\My Documents\Drawing4.scr>: W:/AUTOCAD/SCRIPTS/Titlechange.scr
****IT SHOULD BE EXECUTING THE SCRIPT HERE ETC.******
Command:
The code I'm using is as follows
(command "script" "W:/AUTOCAD/SCRIPTS/Titlechange.scr")
How to format your post:
http://forums.augi.com/misc.php?do=bbcode
This will just make reading your posts easier, and more likely to get a helpful response.
Cheers!![]()
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 5860, Xeon W7-2495X, 128GB RAM, Dual PCIe 4.0 M.2 SSD (RAID 0), 20GB NVIDIA RTX 4000 ADA
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
Hi Robert,
I didn't see the need to post the script because it was working fine when not called up from a LISP routine so the problem I felt wasn't in the script. I didn't do the whole routine in LISP because I'm simply using the LISP routine to open all files from a selected directory to process the script called up from the LISP routine.
It would be handy to have this type of arrangement and it's something you can't do from a script without using something like Autoscript software or naming every file you want to open from within the script a pain if you have to open 10+ files that may change in name.
Hope this helps..