Page 1 of 1

Command Line Mode: ALL_AT_ONCE

Posted: Fri Dec 10, 2021 9:21 am
by James M
Hello,
I am looking to use the command line mode to open a e57 file ( single e57 file containing two clouds) change the -SF_COLOR_SCALE to a custom xml file and save the clouds as a .bin file.

I am getting the desired results when working with file paths with no spaces for the save file path. I am putting the file paths inside quotation marks (") but experiencing issues getting the file to save when a space is present in the save file path.

The following error is give: Invalid parameter: specified 2 file names, but ALL_AT_ONCE is on

This is an example of the commands i am using, entered as a single string in Command Prompt:

Code: Select all

"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O "C:\Users\Example\Example\Example\20211110_204859.e57" -SET_ACTIVE_SF 0 -SF_COLOR_SCALE "C:\Users\Example\Example.xml" -C_EXPORT_FMT BIN -SAVE_CLOUDS ALL_AT_ONCE FILE "C:\Users\Example\Example\Example\Example\New folder\20211110_204859"
in the above example i have kept a folder with a space in the save file path (New folder) this does not work. If this folder name is replaced with a folder name with no space in the name everything works as expected. Folders are already created and exist before issuing the command line commands.

Any advice on what is causing this issue would be greatly appreciated.

I am using windows and Cloud Compare v2.11.3 (Anoia) [64-bit]
Regards James

Re: Command Line Mode: ALL_AT_ONCE

Posted: Mon Dec 13, 2021 1:53 pm
by daniel
What I don't understand is that normally you should specify a filename (and not a file path) after the -FILE option.

Re: Command Line Mode: ALL_AT_ONCE

Posted: Thu Dec 16, 2021 7:21 pm
by James M
Hi Daniel, thank you for the response.
I had assumed you would need to give the full file path when saving. In this instance I am assuming the directory where the file is loaded becomes the working directory and files are saves to this location, I will test out only specifying the file name and not the full path.

Out of interest if multiple files where loaded with different file paths how would CC chose where to save the files, would the first file loaded become the working directory or the last file or something else?

The reason i am loading the e57 and applying a custom -SF_COLOR_SCALE then saving as a bin file, is because I have found no way to set a default Color Scale in CC or a shortcut to quickly change the Color Scale.
I had read old posts which mentioned setting a default color scale or using a shortcut key to change color scale was not possible in CC is this still the case? would this be something that could be added?

Re: Command Line Mode: ALL_AT_ONCE

Posted: Sun Dec 19, 2021 11:25 am
by daniel
Oh, maybe that was my misunderstanding, but since you provided "C:\Users\Example\Example\Example\Example\New folder\20211110_204859" after FILE (in the command line above), it looked like you were specifying a path to folder and not to a file. But of course you can specify a full path to a file if you want to control where the file is created (I would just expect the filename to end with '.bin').

Otherwise, I believe that by default the files will be created next to the first loaded file indeed.

And no, it's not possible to specify a default color scale, or to apply one to multiple entities yet.