
This example considers a screw joint. While the screw joint is not displayed by the Mechanical GUI, there are two ways to create a screw joint.
Use a cylindrical joint and link translation and rotation with the following relation:
Tz = Pitch * Rz
Modify an existing cylindrical joint into a specialized screw
joint. Retrieve the joint using its
ID (_jid) to the joint, then
replace the joint with a screw joint giving the pitch. The commands
for this approach are shown below:
Joint = CS_Joint.Find(_jid) Pitch = 2 Joint.ReplaceByScrew(Pitch)

Note that the pitch value is unit dependant. The joint where these commands are inserted must be a cylindrical joint.