cli → zoo → kcl

zoo kcl mass

Get the mass of objects in a kcl file.

Options

input
The path to the input file. If you pass - as the path, the file will be read from stdin
-m/--material-density
Material density
--material-density-unit
Material density unit
Possible values: lb-ft3 | kg-m3
-s/--src-unit
The source unit to use for the kcl file. This defaults to millimeters, if not set and there is no project.toml. If there is a project.toml file, the default unit will be the one set in the project.toml file
Possible values: cm | ft | in | m | mm | yd
-f/--format
Output format
Possible values: json | yaml | table
-u/--output-unit
Output unit
Possible values: g | kg | lb
--show-trace
If true, print a link to this request's tracing data
Default value: false
-d/--debug
Print debug info
Default value: false
-h/--help
Print help (see a summary with '-h')

About

# get the mass of a file
$ zoo kcl mass --src-unit=m my-file.kcl

# pass a file from stdin
$ cat my-file.kcl | zoo kcl mass --src-unit=m

By default, this will search the input path for a project.toml file to determine the source unit and any specific execution settings. If no project.toml file is found, in the directory of the input path OR any parent directories above that, the default source unit will be millimeters. You can also specify the source unit with the --src-unit/-s command line flag.

See also