Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Drawing2D Class / CreateEllipse Method
Center of the circle
Major radius (the radius on X axis)
Minor radius (the radius on Y axis)
In This Topic
    CreateEllipse Method
    In This Topic
    Creates an ellipse specified by center and minor and major radii.
    Syntax

    Parameters

    center
    Center of the circle
    radiusMajor
    Major radius (the radius on X axis)
    radiusMinor
    Minor radius (the radius on Y axis)

    Return Value

    Created occurrence.
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Argument is null.
    Remarks
    Radii must be positive numbers. To create a rotated ellipse, create non rotated first and then set its' rotation.
    See Also