Request

Response

    ElementDataModel.CreatePrimitiveGeometry method

    It will create an instance of ElementGeometry with units passed in the GeometryProperties object parameter. 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 ElementGeometry CreatePrimitiveGeometry(GeometryProperties properties)
    
    parameterdescription
    properties The Geometry Properties

    Return Value

    Instance of ElementGeometry

    See Also