API Help
Eplan.EplApi.DataModel.Planning Namespace / PlanningSegment Class / Pages Property
Example

In This Topic
    Pages Property (PlanningSegment)
    In This Topic
    Returns collection of all pages assigned to the planning segment.
    Syntax
    public Page[] Pages {get;}
    public:
    property array<Page^>^ Pages {
       array<Page^>^ get();
    }
    Example
    Example shows how to assign pages to planning segment.
    //for newly created PCT loop there is no pages assigned
    Page[] arrPages = oPCTLoop.Pages;
    //oPCTLoop.Pages.Length == 0
    
    //assign pages
    oPage1.PlanningSegment = oPCTLoop;
    oPage2.PlanningSegment = oPCTLoop;
    
    //pages are assigned
    //oPCTLoop.Pages.Length == 2
    
    //remove assignment from one page
    oPage1.PlanningSegment = null;
    
    //oPCTLoop.Pages.Length == 1
    
    
    See Also