Command Line Options

Command line switches can specify different startup routines for Autodesk Navisworks.

You can use command line switches to specify several options when you start the program. For example, you can run Autodesk Navisworks in another language, perform additional memory checks, load and append files, output error reports. With command line switches, you can also set up several program icons, each with different start-up options.

Command line switches are parameters you can add to the roamer.exe command line associated with a Microsoft® Windows® shortcut icon or the Windows Run dialog box. You can include several switches within a single command line. Valid switches are listed in the following table.

Command Line Switch Argument Description
-AppendFile [inputfile] Appends a file to the currently loaded files.
-CreateCache [inputfile] Creates a cache (NWC) file for a design file.
-DisableProgress   Disables the display of the progress dialog while processing switches.
-dump [file_name.dmp] Outputs an error report to the specified file. You must provide the file name and file path within quotation marks.
-EnableProgress   Enables display of the progress dialog while processing switches.
-ExecuteAddInPlugin [plugin] [arg1 arg2 ...] Execute the specified add-in passing any additional arguments to the add-in.
-Exit   Exits roamer once previous command line switches have been processed.
-HideGui   Starts roamer.exe with the Autodesk Navisworks user interface initially hidden.
-lang en-US = English Launches Autodesk Navisworks in the specified language. It is possible to run Autodesk Navisworks in a language other than the default locale (for example, you can run a Japanese version of Autodesk Navisworks with English default locale).
de-DE = German
es-ES = Spanish
fr-FR = French
it-IT = Italian
ja-JP = Japanese
ko-KR = Korean
pt-BR = Brazilian Portuguese
ru-RU = Russian
zh-CN = Chinese (PRC)
-log [filename.txt] Outputs log to the specified file. You must provide the full file path within quotation marks. For example, “C:\temp\log.txt"
-memcheck   Runs Autodesk Navisworks with additional checks for memory errors.
-NoGui   Starts roamer.exe without a user interface
-nwc [inputfile] Autodesk Navisworks converts an input file into the NWC format in the background. You must provide the full file path within quotation marks. For example, “C:\temp\a.dwg"
-nwd [outputfile.nwd] [input file] Autodesk Navisworks converts an input file into the NWD format in the background, and places it into the specified directory. You must provide the full file paths within quotation marks. For example, “C:\temp\b.dwg"
-OpenFile [inputfile] Opens a file.
-options [filename.xml] Starts Autodesk Navisworks, and imports the global options from the specified global options file. You must provide the full file path within quotation marks. For example, "C:\temp\my_global_options.xml"
-Print   Prints document with default printer driver and port.
-Print [printer] Prints document to printer with default driver and port.
-Print [printer] [driver] Prints document to printer with driver and default port.
-Print [printer] [driver] [port] Prints document to printer with driver and port.
-Register   Registers roamer.exe with COM for everyone on this machine (requires administrator rights).
-RegisterPerUser   Registers roamer.exe with COM for the current user only
-ShowGui   Starts roamer.exe with Autodesk Navisworks user interface visible.
-Unregister   Unregisters roamer.exe with COM for everyone on this machine (requires administrator rights).
-UnregisterPerUser   Unregisters roamer.exe with COM for the current user only.

The syntax for using command line switches is:

“drive:pathname\roamer.exe” [switches] [“file1”] [“file2”] [“fileN”], where [switches] are the valid command line switches in any order, and [file1]...[fileN] are the files to be loaded and appended together, if required. You must provide the full file paths within quotation marks.

For example, the following entry starts the program from a folder named Autodesk Navisworks in Russian language, loads the global options file options.xml, and creates a log file log.txt.

"C:\Autodesk Navisworks\roamer.exe" -options "C:\temp\options.xml" -lang ru-ru -log "C:\temp\file.log"