| Revit Preview Release API |
| ImporterIFCUtils..::..GetLocalFileName Method |
| ImporterIFCUtils Class See Also |
Get the local file name, including the path, corresponding to a linked IFC file.
This will create a local copy of the IFC file if necessary.
Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 19.0.0.0 (19.0.0.405)
Since:
2018
Syntax
| C# |
|---|
public static string GetLocalFileName( Document aDoc, string fileName ) |
| Visual Basic |
|---|
Public Shared Function GetLocalFileName ( _ aDoc As Document, _ fileName As String _ ) As String |
| Visual C++ |
|---|
public: static String^ GetLocalFileName( Document^ aDoc, String^ fileName ) |
Parameters
- aDoc
- Type: Autodesk.Revit.DB..::..Document
The document that will contain the IFC link.
- fileName
- Type: System..::..String
The original file name and path.
Return Value
The local file name and path corresponding to the input file name.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | Can't process file name. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |