IFCUser
|
Import property sets from a text file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
public static IList<IFCUserDefinedPropertySet> ImportFromFile(
Document document,
string fileName,
out bool validUserDefinedPropertySetFile
)
Parameters
- document Document
- The Revit document.
- fileName String
- The full text file name.
- validUserDefinedPropertySetFile Boolean
- Whether or not the imported file with property sets is valid.
Return Value
IList IFCUserDefinedPropertySetThe property set elements.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
| FileAccessException | Failed to access the text file. |
| InvalidOperationException | Failed to create IFCUserDefinedPropertySet. |
The imported property sets are saved in the document passed as parameter.