Run from Command Line

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:

/ncad.exe [/drawing file] [-invisible] [-s /script file] [-g /application file]

File names and paths that contain spaces should be enclosed with double quotation marks. For example:

“C:\Program Files\Nanosoft\nanoCAD x64 Plus 10.5\nCad.exe”
“C:\Users\Alex\AppData\Roaming\Nanosoft\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.

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\nanoCAD x64 Plus 10.5\nCad.exe”
“C:\Users\Alex\AppData\Roaming\Nanosoft\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”

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment