Share

Parameter Methods

The Parameter type exposes the following members.

Methods

 NameDescription
Public methodAsDoubleProvides access to the double precision number within the parameter.
Public methodAsElementIdProvides access to the Autodesk::Revit::DB::ElementId^ stored within the parameter.
Public methodAsIntegerProvides access to the integer number within the parameter.
Public methodAssociateWithGlobalParameter Associates this parameter with a global parameter in the same document.
Public methodAsStringProvides access to the string contents of the parameter.
Public methodAsValueString()Get the parameter value as a string with units.
Public methodAsValueString(FormatOptions)Get the parameter value as a string with units.
Public methodCanBeAssociatedWithGlobalParameter Tests whether this parameter can be associated with the given global parameter.
Public methodCanBeAssociatedWithGlobalParameters Tests whether this parameter can be associated with any global parameter.
Public methodClearValueClears the parameter to its initial value.
Public methodDisposeCauses the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public methodDissociateFromGlobalParameter Dissociates this parameter from a global parameter.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetAssociatedGlobalParameter Returns a global parameter, if any, currently associated with this parameter.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetTypeIdGets the identifier of the parameter.
Public methodGetUnitTypeIdGets the identifier of the unit quantifying the parameter value.
Public methodSet(Double)Sets the parameter to a new real number value.
Public methodSet(ElementId)Sets the parameter to a new element id.
Public methodSet(Int32)Sets the parameter to a new integer value.
Public methodSet(String)Sets the parameter to a new string of text.
Public methodStatic memberSetMultiple 
Public methodSetValueStringSet the parameter value according to the input string.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Was this information helpful?