Model.createjointelement_twonoded#
- Model.createjointelement_twonoded(type, node1, node2, orientation, o_node1, o_node2, o_system1, o_system2, property)#
Creates a two-noded joint element.
- Parameters:
type (int) – Element type to create. Valid values are 1 and 25 through 33.
node1 (Entity) – The ID of the first node.
node2 (Entity) – The ID of the second node.
orientation (int) –
A flag indicating how the orientation of the element is defined. Valid values are:
0 - None.
1 - Systems.
2 - Nodes.
o_node1 (Entity) – The node entity of the first orientation node. Ignore, if
orientationis not 2.o_node2 (Entity) – The node entity of the second orientation node. Ignore, if
orientationis not 1.o_system1 (Entity) – The system entity of the first orientation system. Ignore, if
orientationis not 2.o_system2 (Entity) – The system entity of the second orientation system. Ignore, if
orientationis not 1.property (hwString) – The property name to assign to the element.
Example#
Create a two - noded joint element of type 25 , use nodes with IDs 62 and 2 , with systems IDs 454 and 465 used for orientation , with no property#import hm import hm.entities as ent model = hm.Model() model.createjointelement_twonoded( type=25, node1=ent.Node(model, 62), node2=ent.Node(model, 2), orientation=1, o_node1=ent.Node(model, 0), o_node2=ent.Node(model, 0), o_system1=ent.System(model, 454), o_system1=ent.System(model, 465), property="", )