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

    Parameters

    occ
    Occurrence addable to complex entity.
    complexEntity
    Complex entity into which the occurrence will be added.
    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
    • Occurrences can be a part of more than one complex entity.
    • If an occurrence is already part of the complex entity, nothing happens.
    See Also