Loads the contents of a classification text file into the provided KeyBasedTreeEntriesLoadContent.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static bool LoadClassificationEntriesFromFile( string filePath, KeyBasedTreeEntriesLoadContent loadContent )
Parameters
- filePath String
- The full path of the existing classification file.
- loadContent KeyBasedTreeEntriesLoadContent
- The classification entries read from the filePath will be added to this object. A KeyBasedTreeEntriesLoadContent object will also be updated to contain status information, including information about any errors that occurred while reading the keynote entries from the specified file.
Return Value
BooleanTrue if reading the keynote file succeeds; False if the classification file cannot be read.
Exceptions
Exception | Condition |
---|---|
ArgumentException | filePath is an empty string. -or- The KeyBasedTreeEntries object owned by this KeyBasedTreeEntriesLoadContent object is built already. Adding more KeyBasedTreeEntries as well as repeated building, is not supported. |
ArgumentNullException | A non-optional argument was null |
InvalidPathArgumentException | The destination file name includes one or more invalid characters. |