API Help
Eplan.EplApi.HEServices Namespace / Insert Class / PlanningSegment Property
Example

In This Topic
    PlanningSegment Property (Insert)
    In This Topic
    Determines the planning segment to which all function inserted from window macro on page will be assign.
    Syntax
    public PlanningSegment PlanningSegment {get; set;}
    public:
    property PlanningSegment^ PlanningSegment {
       PlanningSegment^ get();
       void set (    PlanningSegment^ value);
    }
    Example
    //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();
    
    
    
    See Also