public PlanningSegment PlanningSegment {get; set;}
public: property PlanningSegment^ PlanningSegment { PlanningSegment^ get(); void set ( PlanningSegment^ value); }
public PlanningSegment PlanningSegment {get; set;}
public: property PlanningSegment^ PlanningSegment { PlanningSegment^ get(); void set ( PlanningSegment^ value); }
//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();