Model.CE_DetailSetTripleByMark#
- Model.CE_DetailSetTripleByMark(collection, detail_name, triple_value1, triple_value2, triple_value3, reserved, force_storage)#
Sets a triple connector detail for collection of connectors.
- Parameters:
collection (Collection) – The collection containing the connectors entities to update.
detail_name (hwString) – The name of the standard triple detail, or user-defined triple detail, to update. See
Model.CE_DetailSetTriple()for valid details.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 connectors with IDs 1, 2 and 3#import hm import hm.entities as ent model = hm.Model model.CE_DetailSetTripleByMark( collection=hm.Collection(model, ent.Connector, [1, 2, 3]), detail_name="ce_ijk", triple_value1=0.0, triple_value2=1.0, triple_value3=0.0, reserved=0, force_storage=0, )