API Help
Eplan.EplApi.DataModel Namespace / SymbolReference Class / ReorderPropertyPlacements Method
List of property placements in requested order.
Example

In This Topic
    ReorderPropertyPlacements Method
    In This Topic
    Reorders property placements of one type, which are assigned to this SymbolReference.
    Syntax

    Parameters

    lstPropertyPlacements
    List of property placements in requested order.

    Return Value

    Resulting list of property placements.
    Exceptions
    ExceptionDescription
    Thrown when input list contains property placements of different type or from different SymbolReferences or not local ones.
    Remarks
    All property placements which are not in the input list, will be removed from original symbol reference. Property placement objects that were acessed before calling this method will be invalid - get and use the list of property placements returned by the method instead.
    Example
    var lComponentPPToReorder = oNewTerminal.GetPropertyPlacements(SymbolReference.PropertyPlacementType.Component);
    var iPPToMoveIndex = 2;
    var oPPToMove = lComponentPP[iPPToMoveIndex];
    lComponentPPToReorder.RemoveAt(iPPToMoveIndex);
    lComponentPPToReorder.Insert(1, oPPToMove);
    
    iPPToMoveIndex = 7;
    oPPToMove = lComponentPP[iPPToMoveIndex];
    lComponentPPToReorder.RemoveAt(iPPToMoveIndex);
    lComponentPPToReorder.Add(oPPToMove);
    
    var lReorderedComponentPP = oNewTerminal.ReorderPropertyPlacements(lComponentPPToReorder);
    
    
    
    See Also