laptop and a wrench

Bug

The spatial reference of a Geometry object coming from MultiPatchBuilderEx.ToGeometry() is null even if the MultiPatchBuilderEx does have a spatial reference.

Last Published: November 27, 2020 ArcGIS Pro SDK for .NET
Bug ID Number BUG-000135314
SubmittedNovember 10, 2020
Last ModifiedJuly 11, 2025
Applies toArcGIS Pro SDK for .NET
Version found2.6.3
Operating SystemWindows OS
Operating System Version10.0
Version Fixed2.7
StatusFixed

Workaround

Consider the following code:

        var multi = new MultipatchBuilder(mpb.ToGeometry() as Multipatch);

        multi.SpatialReference = gda94;

        mutltipatch = multi.ToGeometry();

where mpb is a MultipatchBuilderEx object and GDA94 is a spatial reference. By getting the geometry of the mpb and sending that as a parameter for the Multipatch Builder constructor, the user can set the spatial reference of the multipatch geometry to whatever the user wants and then use the ToGeometry() method to get a geometry object with a spatial reference.

Steps to Reproduce

Bug ID: BUG-000135314

Software:

  • ArcGIS Pro SDK for .NET

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options