Versions Compared

Key

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

...

Code Block
<condition n="Point_Weight" pn="Point Weight" ov="point" ovm="node" icon="constraints" help="Concentrated mass">
    <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>


Let's introduce some concepts. The 'condition' tag is used to assign properties to groups. The properties are defined in the 'value' tags inside the container. For example, there is the property called 'Weight'. We can specify which entity is allowed (point, line, surface and/or volume) in the 'ov' field of the condition. For further information, check the customLib description of fields in the Customization Manual.

the 'symbol' tag allow to draw an image to represent the condition applied, in this case from a raster image file in PNG format.


When we 'double click' on Point Weight, we can see this window, to assign a weight to a group, that can be created by clicking on the Select button. This will allow us to select some points in the geometry. The condition will be applied after selection the points and clicking the Ok button.

...

Code Block
<container n="Properties" pn="Properties" un="Properties" icon="shellsdarkorange-shellfish-18" help="Define your materials database and apply them to the surfaces of your problem">
   
<condition n="Shells" pn="Shells" ov="surface" ovm="element" ov_element_types="triangle" icon="shellsdarkorange-shellfish-18" groups_icon="yelowish-group" help="Select your material and the surfaces related to it">
  
      <value n="material" pn="Material" editable='0' help="Choose a material from the database" values_tree='[Cmas2d::GetMaterialsList %W]'>
	     v="Air">
<edit_command n="Edit materials" pn="Edit materials" icon="materialdarkorange-block1.png" proc='EditDatabaseListCmas2d::EditDatabaseListDirect %W %DICT %BC'/>
       
 </value>
   
</condition>
   
<include path="xml/materials.xml"/>
</container>

...