Model.ME_CoreBehaviorAdjust#
- Model.ME_CoreBehaviorAdjust(options)#
Adjusts part and part assembly related behaviors based on certain aspects and policies.
- Parameters:
options (hwString) –
The string containing all the aspects and their policy values.
allow_automatic_occurrence_splitting=<value>
Every occurrence has an associated base prototype. A single prototype may provide the base for multiple occurrences (for example, a prototype of a wheel might have four occurrences in a vehicle). Once automatic splitting is enabled, any modification that may happen in an occurrence will cause it to be separated (split) from its original prototype to a new prototype of its own, containing all the modifications made. In the wheel/vehicle example, changes made to the front left wheel will cause it to be separated in a different prototype, while all the rest of the wheels remain based on the original prototype, thus having now two prototypes instead of just one. Possible values are:
yes - Enable automatic splitting.
no - Disable automatic slitting (default).
allowable_actions_policy=<value>
Defines the availability of various actions that operate on parts and part assemblies. Possible values are:
default - Allows all actions.
TC - TeamCenter policy. Prevents renaming, re-parenting and deleting.
TC_lite - TeamCenter lite policy. Prevents renaming and re-parenting.
Example#
Translate node with ID 1, 5.0 units along the y - axis#import hm import hm.entities as ent model = hm.Model() model.ME_CoreBehaviorAdjust(options="allowable_actions_policy=TC_lite")