Skip to content

Examples

samatrhea edited this page Apr 28, 2024 · 3 revisions

Examples

Standardize Dimensions In Millimeter

The following command will standartize dimensions in millimeters for all the applicable parameter (all parameters that have metric scale) and convert their value

-s http://localhost:5000 -u admin -p pass --action StandardizeDimensionsInMillimeter -m LOFT --element-definition a1mil_layer_kapton_on_BEE_boxes --domain SYS

Running this command does also the same thing than the previous one. But instead of looking at parameters in a element definition, It will update all applicaples parameters in the Engineering model

-s http://localhost:5000 -u admin -p pass --action StandardizeDimensionsInMillimeter -m LOFT --domain SYS

Applying a state dependency

This example command will apply a state dependency for the parameter with the short name mass_margin contained in the element definition with the short name a10_layers_MLI_on_tower

-s http://localhost:5000 -u admin -p pass --action ApplyStateDependence -m LOFT --state power --parameters mass_margin --element-definition a10_layers_MLI_on_tower --domain THE

Subscribe to a parameter

This example command will add a subscription for the domain of expertise with the shortname THE on the parameter with the short name n_items contained in the element definition with the shortname a1mil_layer_kapton_on_BEE_boxes

-s http://localhost:5000 -u admin -p pass --action Subscribe -m LOFT --parameters n_items --element-definition a1mil_layer_kapton_on_BEE_boxes --domain THE
For more example please have a look at the Command example file