Hy,
can someone help me how to set the jointValueExpression and the PivotExpression of an custom link by code?
Thx & Regards
Feature
Hy,
can someone help me how to set the jointValueExpression and the PivotExpression of an custom link by code?
Thx & Regards
Feature
They are properties of the IDof object.
ISimNode node = null; // Get from somewhere.
IDof dofObject = node.Dof;
if (dofObject.JointType == JointType.Custom)
{
var jointProperty = dofObject.GetProperty("Joint") as IExpressionProperty;
jointProperty.Expression = "Some matrix expression";
var pivotProperty = dofObject.GetProperty("Pivot") as IExpressionProperty;
pivotProperty.Expression = "Some matrix expression";
}