Model.createmembersectionfrommember#

Model.createmembersectionfrommember(member_entity, includemarkid=Collection(), planetype='infinite', numcontrollocs=0, planenormal=hwTriple(0.0, 0.0, 0.0), planelength=300.0, planewidth=300.0, realize=False, sectiontype='real', createsketch=False, autoweld=False, auto_detect_thin_solids=False, alongline=False, vertexangle=0.0, topologycleanupfactor=-1.0)#

Creates member sections on member at control locations with the plane information provided with star function. If number of control locations are zero on a member, default value of 3 will be used to create the member sections.

Parameters:
  • member_entity (Entity) – The object describing the member entity.

  • includemarkid (Collection) – The collection including the entities to intersect the face of member sections. Valid entity types are elements, surfaces and solids.

  • planetype (hwString) – The type of plane associated with the member section. Valid values are infinite and finite.

  • numcontrollocs (unsigned int) – Reserved for future use.

  • planenormal (hwTriple) – Normal of the plane for the intersecting entities.

  • planelength (double) – Length of the plane to define finite plane (default 300). Used only when planetype="finite".

  • planewidth (double) – Width of the plane to define finite plane (default 300). Used only when planetype="finite".

  • realize (bool) – The flag to define member sections to realize or not. Valid values are 0 and 1. Default will be 0.

  • sectiontype (hwString) – The section type to be used to realize member section. Valid values are boundingbox and real (default). Used only when realize flag is set to 1.

  • createsketch (bool) – Flag to create sketch entity on beam section when member section is realized. Only works if the section type is real. Valid values are False and True.

  • autoweld (bool) – Flag to perform auto weld on the realized beam section of the member section. Valid values are False and True.

  • auto_detect_thin_solids (bool) – Flag to detect thin solids for the realized beam section of the member section. This flag works only if the intersectingentitytype="solids". Valid values are False and True.

  • alongline (bool) – The flag to create control locations of member on the line selected. Valid values are False and True.

  • vertexangle (double) – Section Contour is smoothened if vertex angle between two lines is below this limit. Valid values are between 0.0 to 90.0.

  • topologycleanupfactor (double) – Reserved for future development.

Example#

Create a member section from a member#
import hm
import hm.entities as ent

model = hm.Model()

model.createmembersectionfrommember(
    member_entity=ent.Member(model,1),
    planetype="finite",
    planenormal=[-0.99, -0.06, 0.12],
    planelength=300.0,
    planewidth=300.0,
    realize=True,
    sectiontype="real",
    createsketch=True,
    autoweld=True,
    auto_detect_thin_solids=False,
    vertexangle=60.0,
)