Model.barpinsupdate#
- Model.barpinsupdate(collection, update_pinsa, pinsa, update_pinsb, pinsb)#
Updates pins of bar elements.
- Parameters:
collection (Collection) – The collection containing the element entities to update.
update_pinsa (int) –
0 - Do not update pinsa
1 - Update pinsa
pinsa (int) – The pins at end a. Maximum value is 123456.
update_pinsb (int) –
0 - Do not update pinsb
1 - Update pinsb
pinsb (int) – The pins at end b. Maximum value is 123456.
Example#
Release pins of elements with IDs 1-4, the translational and rotational X-axis at ends a and b respectively#import hm import hm.entities as ent model = hm.Model() elems = hm.Collection(ent.Element, list(range(1,5))) model.barpinsupdate( collection=elems, update_pinsa=1, pinsa=1, update_pinsb=1, pinsb=4 )