The ConfigurationCount method of the CustomSupportDefinition class defines the number of route toggle configurations that are supported by the assembly and is defined as follows:
public override int ConfigurationCount
The method returns the number of configurations that are applicable for the assembly. The following code provides a sample implementation of the ConfigurationCount method:
public override int ConfigurationCount
{
get
{
return 2;
}
}
ConfigureSupport() handles different toggles by checking the configuration value and altering the joints accordingly for each toggle. For example, implementation in ConfigureSupport() would be as follows:
if (Configuration ==1)
{
JointHelper.CreateRigidJoint(BOTROD, "RodEnd1", BOTEYENUT, "RodEnd", Plane.XY, Plane.XY, Axis.X, Axis.X,0,0, 0);
else
JointHelper.CreateRigidJoint(BOTROD, "RodEnd1", BOTEYENUT, "RodEnd", Plane.XY, Plane.XY, Axis.X, Axis.NegativeX,0,0, 0);
}