Hi goetzmoritz, the moi.command.getCommandLineParams() gets the command line parameters of the currently running MoI command, not the parameters given to MoI.exe .
Commands can be run with parameters given to them, like "Open filename.3dm" for example, and moi.command.getCommandLineParams() is used by commands that can accept parameters to find out what they are.
You can instead use (in MoI v4) moi.getExecutableCommandLineArgs() to get the ones given to MoI.exe when it was launched. It returns a list of strings.
- Michael
|