BindingMap Class


Binding Map Class

The parameters BindingMap contains all the parameter bindings that exist in the Autodesk Revit project.
Inheritance Hierarchy

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class BindingMap : DefinitionBindingMap

The BindingMap type exposes the following members.

Properties
Name Description
Public property IsEmpty Test to see if the map is empty.
(Inherited from DefinitionBindingMap )
Public property Code example IsReadOnly Identifies if the object is read-only or modifiable.
(Inherited from APIObject )
Public property Item The get_Item method will get the binding item related to the input key.
(Overrides DefinitionBindingMap Item Definition )
Public property Size Returns the number of bindings that are in the map.
(Inherited from DefinitionBindingMap )
Top
Methods
Name Description
Public method Clear This method is used to remove all the items in the map.
(Overrides DefinitionBindingMap Clear )
Public method Contains The Contains method is used to check if the parameter binding exists for one definition.
(Overrides DefinitionBindingMap Contains(Definition) )
Public method Dispose Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject )
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method Erase This method is used to erase one item in the map.
(Overrides DefinitionBindingMap Erase(Definition) )
Public method ForwardIterator Retrieve a forward moving iterator to the map.
(Inherited from DefinitionBindingMap )
Public method GetEnumerator Retrieve a forward moving iterator to the map.
(Inherited from DefinitionBindingMap )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method Insert(Definition, Binding) Creates a new parameter binding between a parameter and a set of categories.
(Overrides DefinitionBindingMap Insert(Definition, Binding) )
Public method Insert(Definition, Binding, ForgeTypeId) Creates a new parameter binding between a parameter and a set of categories in a specified group.
Public method ReInsert(Definition, Binding) Removes an existing parameter and creates a new binding for a given parameter.
Public method ReInsert(Definition, Binding, ForgeTypeId) Removes an existing parameter and creates a new binding for a given parameter in a specified group.
Public method Remove The Remove method is used to remove a parameter binding.
Public method ReverseIterator Retrieve a backward moving iterator to the map.
(Inherited from DefinitionBindingMap )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
The ParameterBindingsMap is available from the Document.ParameterBindings property. A parameter binding is the way that a parameter definition is bound to elements within one or more categories. This map can be used to interrogate existing bindings, but it can also be used to generate new parameter bindings by using the Insert method.
See Also