Sets the documentation string for the Field.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2012
Syntax
C# |
---|
public FieldBuilder SetDocumentation( string documentation ) |
Visual Basic |
---|
Public Function SetDocumentation ( _ documentation As String _ ) As FieldBuilder |
Visual C++ |
---|
public: FieldBuilder^ SetDocumentation( String^ documentation ) |
Parameters
- documentation
- Type: System..::..String
The documentation string.
Return Value
The FieldBuilder object may be used to add more details to the field.
Remarks
While Entities may be hidden using access levels, Schemas and Fields are visible to
clients and other developers. In the interest of clarity and interoperability, you are
very strongly encouraged to provide good documentation with your Schemas.
Explain the intent of the data and how it is meant to be interpreted. It is not
useful to repeat information that can be observed directly (e.g. types and units).
Note that documentation, like all other contents of Schemas and Fields is immutable
once the add-in using the Schema is published.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
Autodesk.Revit.Exceptions..::..InvalidOperationException | The SchemaBuilder has already finished building the Schema. |