How to set JointExpression and PivotExpression in a custom link


can someone help me how to set the jointValueExpression and the PivotExpression of an custom link by code?


Thx & Regards

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";
1 Like