Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

<condition>

...

Code Block
<condition n="Point_Weight" pn="Point Weight" icon="constraints" groups_icon="groups-16">
...
</condition>

before_update_proc - Set to a Tcl procedure name to be called when choosing this field in data tree.

update_proc - It calls a Tcl procedure, when clicking on the 'Ok' button in the window or when changing the value of the entry.

Must be a Tcl procedure name with possible extra special arguments  %W, %TREE, %BC, see proc

This procedure can for example validate user values

Example:

Code Block
<condition n="Point_Weight" pn="Point Weight" ov="point" ovm="node" icon="darkorange-weight-18" groups_icon="yelowish-group" help="Concentrated mass" update_proc="my_validate_point_weigth_child_values %W %TREE %BC">
<value n="Weight" pn="Weight" v="0.0" unit_magnitude="M" units="kg" help="Specify the weight that you want to apply"/>
<symbol proc="gid_groups_conds::draw_symbol_image weight-18.png" orientation="global"/>
</condition>

...