ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipatchBuilderEx Class / CreateMultipatch Method / CreateMultipatch(MultipatchConstructType,MapPoint,Double,SpatialReference) Method
The type of multipatch to be constructed.
The center point of the Multipatch.
The size of the shape (height, length, width). It must be greater than 0.
(Optional)The spatial reference of the Multipatch.

In This Topic
    CreateMultipatch(MultipatchConstructType,MapPoint,Double,SpatialReference) Method
    In This Topic
    Convenience method to quickly create a new Multipatch object. Use this constructor to create a cube, tetrahedron, diamond or hexagon centered around the centerPt of the specified size.
    Syntax
    Public Overloads Shared Function CreateMultipatch( _
       ByVal constructType As MultipatchConstructType, _
       ByVal centerPt As MapPoint, _
       ByVal size As Double, _
       Optional ByVal spatialReference As SpatialReference _
    ) As Multipatch

    Parameters

    constructType
    The type of multipatch to be constructed.
    centerPt
    The center point of the Multipatch.
    size
    The size of the shape (height, length, width). It must be greater than 0.
    spatialReference
    (Optional)The spatial reference of the Multipatch.

    Return Value

    Exceptions
    ExceptionDescription
    The centerPt is empty or null.
    The size is invalid. It must be greater than 0.
    The constructType is invalid for this constructor.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also