Harness proD API Help
EPLAN.Harness.API.Common Namespace / Extensions Class / RemoveFromComplexEntity Method
Occurrence addable to complex entity.
Complex entity from which the occurrence will be removed.
In This Topic
    RemoveFromComplexEntity Method
    In This Topic
    Remove this occurrence from complex entity.
    Syntax
    [Extension()]
    public static void RemoveFromComplexEntity( 
       IComplexEntityAddable occ,
       IOccComplexEntity complexEntity
    )

    Parameters

    occ
    Occurrence addable to complex entity.
    complexEntity
    Complex entity from which the occurrence will be removed.
    Exceptions
    ExceptionDescription
    Api is not in an initialized state. You can get current state from Status property. If API is uninitialized, you can initialize it by calling Init(String,String[]) method. If API is in failed state, you can not resurrect it.
    The object is in invalid state. Obtain a new one.
    The exception that is thrown when you trying to access to already deleted occurrence.
    Argument is null.
    The exception that is thrown when an occurrence is not part of this document.
    Remarks
    If this occurrence is not a part of the complex entity, nothing happens.
    See Also