Table of Contents

Method GetIfcFilePath

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

GetIfcFilePath(ReferenceModel)

Gets the full path of the IFC file a reference model currently shows, that is its active revision.

public static string GetIfcFilePath(this ReferenceModel referenceModel)

Parameters

referenceModel ReferenceModel

The reference model.

Returns

string

The full path, or null when the reference model shows no IFC file or its path cannot be resolved.

Remarks

Tekla gives the path relative to the model folder, while the global cache of GeometryHelper.IfcConvert (GetOrCreate(string)) takes full paths only.

Exceptions

ArgumentNullException

Thrown when referenceModel is null.