Creates a new instance of a
Multipatch class from a supported 3D model file.
Parameters
- filePath
- The file system location of the 3D model.
- spatialReference
- The spatial reference of the output geometry.
Return Value
The model geometry. An empty multipatch will be returned if the model file cannot be read or if the model file contains no geometry.
Construct Multipatch from a 3D model file
try
{
var model = ArcGIS.Core.Geometry.MultipatchBuilderEx.From3DModelFile(@"c:\Temp\My3dModelFile.dae");
bool modelIsEmpty = model.IsEmpty;
}
catch (FileNotFoundException)
{
// file not found
}
catch (ArgumentException)
{
// File extension is unsupported or cannot read the file
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.