MarcusLintault
2012-10-11, 11:31 PM
Hello Everyone!
In AutoCAD 2012 I am having trouble in launching a script file from a ribbon button command within the CUI editor. This is what I thought would work:
^C^C._script;"\\server\CAD Resources\AutoCAD-2012\Scripts\MyScript.scr";
But when ever it hits the " it stops waiting for the user to input the script file.
This works:
^C^C._script;MyScript.scr;
...as long as the path to the file is included within the Support File Search Path within AutoCAD's options.
But I would like to include an UNC path that does contains spaces and so I thought adding the "" would work.
I've also tried this:
(command "._script" "\\\\server\\CAD Resources\\AutoCAD-2012\\Scripts\\MyScript.scr")
...which works on the command line, but not when it is placed on a button
Any help from would be greatly appreciated!!
Regards,
Marcus
In AutoCAD 2012 I am having trouble in launching a script file from a ribbon button command within the CUI editor. This is what I thought would work:
^C^C._script;"\\server\CAD Resources\AutoCAD-2012\Scripts\MyScript.scr";
But when ever it hits the " it stops waiting for the user to input the script file.
This works:
^C^C._script;MyScript.scr;
...as long as the path to the file is included within the Support File Search Path within AutoCAD's options.
But I would like to include an UNC path that does contains spaces and so I thought adding the "" would work.
I've also tried this:
(command "._script" "\\\\server\\CAD Resources\\AutoCAD-2012\\Scripts\\MyScript.scr")
...which works on the command line, but not when it is placed on a button
Any help from would be greatly appreciated!!
Regards,
Marcus