Harness proD API Help
EPLAN.Harness.API.Projects.Documents.Camera Namespace / Camera2D Class / ZoomTo Method
Occurrences from this drawing to zoom to.
In This Topic
    ZoomTo Method (Camera2D)
    In This Topic
    Zoom the camera to given occurrences.
    Syntax
    public void ZoomTo( 
       IEnumerable<IOccurrence> occurrences
    )

    Parameters

    occurrences
    Occurrences from this drawing to zoom to.
    Exceptions
    ExceptionDescription
    Api is not in an initialized state. You can get current state from EPLAN.Harness.API.HpdApi.Status property. If API is uninitialized, you can initialize it by calling EPLAN.Harness.API.HpdApi.Init method. If API is in failed state, you can not resurrect it.
    The object is in invalid state. Obtain a new one.
    This file is not opened.
    See Also