Model.createsketchfrombeamsection#
- Model.createsketchfrombeamsection(beamsections, assignsketch=True, computeproperties=False, offset=hwDoubleList())#
Creates a sketch from shell or solid beamsections.
- Parameters:
beamsections (Collection) – The collection containing the input beamsections entities.
assignsketch (bool) –
After sketch creation, assign the sketch to the beamsection.
False - Do not assign
True - Assign (default)
computeproperties (bool) –
If
assignsketch=1, use the sketch to recompute new beamsection properties.False - Do not compute (default)
True - Compute
offset (hwDoubleList) – Offset in local beamsection system to add to the sketch.
Example#
Create a sketch from a beamsection#import hm import hm.entities as ent model = hm.Model() beamsects = hm.Collection(model, ent.Beamsection, list(range(1, 11))) model.createsketchfrombeamsection(beamsections=beamsects)
Create an offset sketch and recompute properties#import hm import hm.entities as ent model = hm.Model() beamsects = hm.Collection(model, ent.Beamsection, populate=True) model.createsketchfrombeamsection(beamsections=beamsects, computeproperties=Tue, offset=[1.0, 2.0])