Model.beamsectioncreateshell#
- Model.beamsectioncreateshell(collection, plane_normal, plane_base, vector_id, project, base_node_entity, part_generation)#
Creates a shell beam section for , using lines or 1D elements.
- Parameters:
collection (Collection) – The collection containing the entities that defines the cross-section. Valid values are lines and elems. For elements, only 1D elements can be used.
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.
vector_id (hwTriple) – The vector that defines the direction to project the input entities to the plane. This is only used when
project=2.project (int) –
Defines how the projection of the input entities occurs:
2 - Project the entities to the defined cross-section plane. The
plane_normalandvector_idoptions are required.3 - Create a cross-section plane that fits the selected entities. The
base_node_entityoption is required.base_node_entity (Entity) – The object describing the node entity to use as a base. This is only used when
project=3.part_generation (int) –
Defines how many individual parts are created:
0 - Automatically sort the lines or elements into their separate sheet metal parts.
1 - Force every separate line or element to be a separate sheet metal part with individual thickness.
Example#
Create a shell section from lines with IDs 1 through 10, projecting to the xy-plane at 0.0, 0.0, and 0.0 along the z-direction, and creating individual parts#import hm import hm.entities as ent model = hm.Model() lines = hm.Collection(model, ent.Line, list(range(1, 11))) model.beamsectioncreateshell( collection=lines, plane_normal=(0.0, 0.0, 1.0), plane_base=(0.0, 0.0, 0.0), vector_id=(0.0, 0.0, 1.0), project=2, base_node_entity=None, part_generation=0 )