// Obtain the workdesk beforehand.
Workdesk workdesk = ...
// Define a position for the connector.
TransformProperty<LengthProperty> position = new TransformProperty<LengthProperty>
(
new LengthProperty(10, Unit.Millimeter),
new LengthProperty(10, Unit.Millimeter),
new LengthProperty(0, Unit.Millimeter)
);
// Define a rotation for the connector.
TransformProperty<AngleProperty> rotation = new TransformProperty<AngleProperty>
(
new AngleProperty(180, Unit.Degree),
new AngleProperty(0, Unit.Degree),
new AngleProperty(0, Unit.Degree)
);
// Create a definition for the connector.
RapidConnectorDefinition rapidConnectorDefinition = new RapidConnectorDefinition()
{
PinColor = Color.Green,
PinSize = new LengthProperty(15, Unit.Millimeter),
Shape = RapidConnectorShape.Cuboid,
RibbonConnector = true
};
// Insert the connector.
IOccConnector rapidConnector = workdesk.PlaceRapidPrototypeConnector(position, rotation, rapidConnectorDefinition);