/// Obtain project and workspace beforehand and open for writing.
Project proj = ...
Workspace workspace = ...
workspace.Open(false, false);
// Special component library part. (assume the library connected to project contains the library part)
var spliceLib = proj.ActiveConnection.GetLibraryPartsByPartNumber("splice lib part").FirstOrDefault();
// Obtain wire from workspace
IOccBundle bundle = workspace.GetAllOccurrences<IOccBundle>().FirstOrDefault(occ => occ.Name.ToString() == "myBundle");
// Obtain controls points from bundle.
List<IControlPoint> controlPoints = bundle.GetAllControlPoints().ToList();
IControlPoint firstPoint = controlPoints.FirstOrDefault(c => c.Name.ToString() == "occ_1");
IControlPoint secondPoint = controlPoints.FirstOrDefault(c => c.Name.ToString() == "occ_2");
// Position of the splice.
TransformProperty<LengthProperty> position = new TransformProperty<LengthProperty>
(
new LengthProperty(-50, Unit.Millimeter),
new LengthProperty(120, Unit.Millimeter),
new LengthProperty(70, Unit.Millimeter)
);
// Place attached part to occurrence.
workspace.PlaceSplice(spliceLib, bundle, firstPoint, secondPoint, position);