Model.UpdateBinderSections#

Model.UpdateBinderSections(collection_1, collection_2, collection_3, collection_4, plane_normal, plane_base, rotate_flag, blend_flag, method_flag, sym_flag, con_flag)#

Updates the binder shape using the current section.

Parameters:
  • collection_1 (Collection) – The collection containing the surface entities.

  • collection_2 (Collection) – The collection containing the node entities.

  • collection_3 (Collection) – The collection containing the line entities.

  • collection_4 (Collection) – The collection containing the node entities

  • plane_normal (hwTriple) – The hwTriple object defining the plane normal components. User can also supply a Python list of three doubles.

  • plane_base (hwTriple) – The hwTriple object defining the base point components of the plane. User can also supply a Python list of three doubles.

  • rotate_flag (int) – Must be set to 1.

  • blend_flag (int) – Must be set to 0.

  • method_flag (int) – Must be set to 5.

  • sym_flag (int) – Reserved for future development

  • con_flag (int) – Must be set to 1.

Example#

Update the binder shape use the plane with normal vector [ 1.0 , 0.0 , 0.0 ] and base point [ 0.0 , 0.0 , 0.0 ]#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the surface entities
surface_collection = hm.CollectionByInteractiveSelection(model, ent.Surface)

# Creating a collection that contains the node entities
node_collection_1 = hm.CollectionByInteractiveSelection(model, ent.Node)

# Creating a collection that contains the line entities
line_collection = hm.CollectionByInteractiveSelection(model, ent.Line)

# Creating a collection that contains the node entities
node_collection_2 = hm.CollectionByInteractiveSelection(model, ent.Node)

model.UpdateBinderSections(
    collection_1=surface_collection,
    collection_2=node_collection_1,
    collection_3=line_collection,
    collection_4=node_collection_2,
    plane_normal=[1.0, 0.0, 0.0],
    plane_base=[0.0, 0.0, 0.0],
    rotate_flag=1,
    blend_flag=0,
    method_flag=5,
    con_flag=1,
)