Model.barelementorientbysystem#
- Model.barelementorientbysystem(collection, vector, system_id)#
Orients bar elements along a given direction with respect to an input system.
- Parameters:
collection (Collection) – The collection containing the element entities to orient.
vector (hwTriple) – The hwTriple object defining the vector components. User can also supply a Python list of three doubles.
system_id (unsigned int) – The ID of the local system For global system, set as 0.
Example#
Orient elements with IDs 1-4 along the x-direction with respect to local system with ID 1#import hm import hm.entities as ent model = hm.Model() elems = hm.Collection(model, ent.Element, list(range(1, 5))) model.barelementorientbysystem( collection=elems, vector=(1, 0, 0), system_id=1 )