PlanningSegment Property (Insert)
Determines the planning segment to which all function inserted from window macro on page will be assign.
//create insert service
Insert oInsert = new Insert();
//set planning segment to which functions from macro will be assigned
oInsert.PlanningSegment = oPlanningSegment;
//insert a window macro
StorableObject [] arrInsertedSorableObjects = oInsert.WindowMacro(
strPath,
iVariant,
oSchematicPage,
oLocation,
Insert.MoveKind.Absolute);
//get first inserted function
Function oInsertedFunction = arrInsertedSorableObjects.OfType<Function>().FirstOrDefault();