Model.CE_DetailSetTriple#
- Model.CE_DetailSetTriple(connector_id, detail_name, triple_value1, triple_value2, triple_value3, reserved, force_storage)#
Sets a triple connector detail for a single connector.
- Parameters:
connector_id (unsigned int) – The ID of connector to update.
detail_name (hwString) –
The name of the standard triple detail, or user-defined triple detail, to update. Standard triple details include:
ce_dircords
The coordinates of the direction node.
ce_ijk
The vector definition used for realization.
triple_value1 (double) – The first triple value to update for the detail.
triple_value2 (double) – The second triple value to update for the detail.
triple_value3 (double) – The third triple value to update for the detail.
reserved (unsigned int) – Reserved for future development. Must be set to 0.
force_storage (unsigned int) –
0 - Do not store user-defined detail.
1 - Store user-defined detail.
Example#
Set the projection vector to (0.0, 1.0, 0.0) for connector with ID 1#import hm import hm.entities as ent model = hm.Model() model.CE_DetailSetTriple( connector_id=1, detail_name="ce_ijk", triple_value1=0.0, triple_value2=1.0, triple_value3=0.0, reserved=0, force_storage=0, )