-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Run nanoCAD from Command Line with Program Module
-
-
-
-
Run nanoCAD from Command Line with Program Module
There is a possibility to load a program module or extension script together with nanoCAD launch from the command line of the operating system or by using a shortcut.
Syntax of call from the command line:
<path>/ncad.exe [<path>/drawing file] [-invisible] [-s <path>/script file] [-g <path>/application file]
File names and paths that contain spaces should be enclosed with double quotation marks. For example:
"C:\Program Files\Nanosoft AS\nanoCAD x64 Plus 10.5\nCad.exe" "C:\Users\Alex\AppData\Roaming\Nanosoft AS\nanoCAD x64 Plus 10.5\Samples\nCAD Mechanica. Shift.dwg"
Script file or file of loaded application should be the most recent parameter in the call line.
note: Ways to launch nanoCAD from the command line of the operating system with the simultaneous opening of the desired document on the desired layout or with the required named view are discussed in the Opening document from the command line section.
Options:
-invisible |
nanoCAD launch in a stealth mode. It creates only nanoCAD process. Nether window, nor program message are displayed on the screen. It is convenient to use at simultaneous load of script of loaded module to fulfill operation in the background. |
-g |
Loading program module. |
-s |
Loading command script (*.scr). |
Example of loading a drawing file and LISP-scipt in the background:
"C:\Program Files\Nanosoft AS\nanoCAD x64 Plus 10.5\nCad.exe" "C:\Users\Alex\AppData\Roaming\Nanosoft AS\nanoCAD x64 Plus 10.5\Samples\nCAD Mechanica. Shift.dwg" -invisible -g "C:\modules\plot_pdf.lsp"
Example of loading a command script:
nCad.exe -s "C:\modules\my settings 3.scr"