Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Drawing2D Class / CreatePolygon Method
Positions of points of polygon
In This Topic
    CreatePolygon Method
    In This Topic
    Creates a polygon through specified points.
    Syntax

    Parameters

    positions
    Positions of points of polygon

    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
    The first and last point specified by parameter will be connected by an edge of created polygon.
    See Also