*GeneralConstraint()
Creates a general constraint.
Syntax
*GeneralConstraint(gcon_name,"gcon_label")
Arguments
- gcon_name
- The variable name of the general constraint.
- gcon_label
- The descriptive label of the general constraint.
Example
*BeginMDL( the_model, "Model", )
*StandardInclude(FILE)
*SetCurrentSolverMode(MotionSolve)
*Body( b_0, "Body 0", , , , , )
*Body( b_1, "Body 1", , , , , )
*Point( p_1, "Point 1" )
*Point( p_2, "Point 2" )
*Marker( m_0, "Slot", b_1, p_2 )
*Marker( m_1, "Point", b_0, p_1 )
*GeneralConstraint( gcon_0, "GeneralConstraint 0" )
*SetGeneralConstraint( gcon_0, `DY({m_1.id}, {m_0.id}, {m_0.id})` )
*EndMDL()
Context
Comments
This statement can be used to create a general constraint that is based on an expression or a user-defined subroutine.
Use the *SetGeneralConstraint() statement to specify your expression or define a subroutine.