McCamSwitch

Defines a digital cam or cyclic switch.

Name Type Meaning
TrackNumber int

The index of a track. Indexes are zero-based.

FirstOnPosition double

The position from which the switch is on.

LastOnPosition double

The position from which the switch is off.

AxisDirection int

The direction of an axis. The default value is zero. If you select one or two, the switch is active only when the axis is moving in the specified direction.

Both: 0, Positive: 1, Negative: 2.

CamSwitchMode int

The cam switch is controlled by an axis' positions or time. The default value is zero. If choosing Position, you need to set FirstOnPosition and LastOnPosition; if choosing Time, you need to set FirstOnPosition and Duration.

Position: 0, Time: 1.

Duration double How long the switch is on. This property is available when CamSwitchMode is Time. Unit: second.