ElementDataModel.CreateMeshGeometry method
Creates an instance of MeshGeometry.
public static MeshGeometry CreateMeshGeometry(Mesh mesh, string meshName, Units units = null,
string sourceId = null)
| parameter | description |
|---|---|
| mesh | In-memory mesh object. |
| meshName | Name of the mesh object. |
| units | Units object. |
| sourceId | Optional connector-owned source id, exposed as SourceId and used for lookup via GetGeometryMetaDataById. |
Return Value
Instance of MeshGeometry.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when mesh is null. |
See Also
- class MeshGeometry
- class Units
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels