EntityClear(String) Method |
Resets the field to its default value.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void Clear(
string fieldName
)
Public Sub Clear (
fieldName As String
)
public:
void Clear(
String^ fieldName
)
member Clear :
fieldName : string -> unit
Parameters
- fieldName String
-
The name of the field to clear.
Exceptions
Remarks
The default value is zero for numeric fields, invalid value for identifiers and
entities, and empty for strings and containers.
This method is a shortcut that will look up the field by name. If you want to call it
on many entities, it is faster if you look up the field yourself.
See Also