Model.applybeamsection#
- Model.applybeamsection(collection, beamsection)#
Applies a beamsection to selected members or membersections. If a beamsection is applied to members, a new membersection containing the beamsection is created and assigned to the members.
- Parameters:
collection (Collection) – The collection containing the skeleton entities. Valid entity types are members and membersections.
beamsection (Entity) – The object describing the beamsection entity to assign to the selected entities in
collection.
Example#
Apply a beamsection with ID 16 to displayed members#import hm import hm.entities as ent model = hm.Model() # Member collection input_col = hm.CollectionByDisplayed(model, ent.Member) model.applybeamsection(collection=input_col, beamsection=ent.Beamsection(model, 16))