General joint stiffness worksheet through Mechanical scripting

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 859
500 Comments Photogenic Name Dropper Solution Developer Community of Practice Member
✭✭✭✭
edited June 2023 in Structures

How can I create a general joint and define its stiffness coefficients in the worksheet through ACT scripting?

Tagged:

Best Answer

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 859
    500 Comments Photogenic Name Dropper Solution Developer Community of Practice Member
    ✭✭✭✭
    Answer ✓

    To define the general joint, use:

        connections = ExtAPI.DataModel.Project.Model.Connections
        newJoint = connections.AddJoint()
        newJoint.Type =JointType.General
        newJoint.Rotations=JointRotationDOFType.FreeAll
    

    To define the stiffness coefficients, use the following syntax (for example for thetaX) :

        ws= newJoint.BushingWorksheet
        ws.SetBushingStiffnessPerThetaUnitX(3,10)
    

Answers