cli → zoo → file →
zoo file convert
Convert a CAD file from one format to another.
Options
input
- The path to the input file to convert. If you pass
-
as the path, the file will be read from stdin output-dir
- The path to a directory to output the files
-s/--src-format
- A valid source file format
Possible values:fbx | gltf | obj | ply | sldprt | step | stl
-t/--output-format
- A valid output file format
Possible values:fbx | glb | gltf | obj | ply | step | stl
-f/--format
- Command output format
Possible values:json | yaml | table
--deterministic
- If true, the output file should be deterministic, meaning any date or time information will be replaced with a fixed value. This is useful for when pushing to version control
Default value:false
-d/--debug
- Print debug info
Default value:false
-h/--help
- Print help (see a summary with '-h')
About
If the file being converted is larger than a certain size it will be
performed asynchronously, you can then check its status with the
zoo api-call status <id_of_your_operation>
command.
# convert step to obj
$ zoo file convert --output-format=obj my-file.step output_dir
# convert obj to step
$ zoo file convert --output-format=step my-obj.obj .
# pass a file to convert from stdin
# when converting from stdin, the original file type is required
$ cat my-obj.obj | zoo file convert --output-format=step - output_dir