ImportFromFile Method


IFCUser Defined Property Set Import From File Method

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)
Syntax
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 IFCUserDefinedPropertySet
The property set elements.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
FileAccessException Failed to access the text file.
InvalidOperationException Failed to create IFCUserDefinedPropertySet.
Remarks
The imported property sets are saved in the document passed as parameter.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →