Method ToGeoSolids
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoSolids(ReferenceModelObject, IfcConvertOptions)
Converts one reference object into bodies in the current work plane.
public static GeoSolid3[] ToGeoSolids(this ReferenceModelObject referenceObject, IfcConvertOptions options = null)
Parameters
referenceObjectReferenceModelObjectThe reference object.
optionsIfcConvertOptionsThe conversion settings; see CreateIfcConvertOptions(ReferenceModel, IfcConvertOptions).
Returns
- GeoSolid3[]
The bodies of the object's IFC product; empty when it cannot be converted.
Exceptions
- ArgumentNullException
Thrown when
referenceObjectis null.
ToGeoSolids(IEnumerable<ReferenceModelObject>, IfcConvertOptions)
Converts reference objects, of any number of reference models and IFC files, into bodies in the current work plane.
public static GeoSolid3[] ToGeoSolids(this IEnumerable<ReferenceModelObject> referenceObjects, IfcConvertOptions options = null)
Parameters
referenceObjectsIEnumerable<ReferenceModelObject>The reference objects, for example those selected in the model.
optionsIfcConvertOptionsThe conversion settings; see CreateIfcConvertOptions(ReferenceModel, IfcConvertOptions).
Returns
- GeoSolid3[]
The bodies that could be read. An IFC product can have several; see ToIfcGeometries(IEnumerable<ReferenceModelObject>, IfcConvertOptions) to tell whose they are.
Exceptions
- ArgumentNullException
Thrown when
referenceObjectsis null.