Harness proD API Help
EPLAN.Harness.API.Common Namespace / Extensions Class / RemoveFromCableUnit Method
EPLAN.Harness.API.Occurrences.Interfaces.ICableUnitAddable occurrence.
Example
In This Topic
    RemoveFromCableUnit Method (Extensions)
    In This Topic
    Remove this occurrence from any cable unit.
    Syntax
    [Extension()]
    public static void RemoveFromCableUnit( 
       ICableUnitAddable occ
    )

    Parameters

    occ
    EPLAN.Harness.API.Occurrences.Interfaces.ICableUnitAddable occurrence.
    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.
    Example
    This example shows how to remove occurrence from a cable unit.
    ICableUnitAddable occurrence = ...
    
    occurrence.RemoveFromCableUnit();
    See Also