Request

Response

    ElementDataModel.CreatePrimitiveGeometry method

    It will create an instance of PrimitiveGeometry with units. For collection geometry you could use class from Autodesk.GeometryUtilities.SDK.Primitive.Geometry and Autodesk.GeometryUtilities.SDK.Primitive.Design. More collection classes will be added soon. For a now single point and Curve set is supported.

    public static PrimitiveGeometry CreatePrimitiveGeometry(Geometry geometry, 
        RenderStyle renderStyle = null, Units units = null)
    
    parameterdescription
    geometry The Geometry object (DesignPoint or GeometryContainer).
    renderStyle RenderStyle object.
    units Units object.

    Return Value

    Instance of PrimitiveGeometry.

    See Also