Method ToIfcGeometries
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToIfcGeometries(IEnumerable<ReferenceModelObject>, IfcConvertOptions)
Converts reference objects into the whole geometry of their IFC products, in the current work plane: bodies and open surfaces, with the GlobalId, name, type and conversion warnings of each product.
public static IReadOnlyList<IfcProductGeometry> ToIfcGeometries(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
- IReadOnlyList<IfcProductGeometry>
One entry per product that could be read, in the order the objects were given; an object given twice comes back once. A product with no body of its own comes back empty (IsEmpty) rather than being left out.
Remarks
GlobalId leads back to the Tekla object through
ReferenceModel.GetReferenceModelObjectByExternalGuid, and Placement
is the product's own frame, carried into the current work plane as well.
Exceptions
- ArgumentNullException
Thrown when
referenceObjectsis null.