Skip to content

BindingMap

Public Class

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

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.DefinitionBindingMap
Autodesk.Revit.DB.BindingMap

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

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

)


Public Property

Returns the number of bindings that are in the map.
(Inherited from DefinitionBindingMap)


Methods

Name

Description


Public Method
Clear

This method is used to remove all the items in the map.
(Overrides

)


Public Method

The Contains method is used to check if the parameter binding exists for one definition.
(Overrides

)


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

)


Public Method

Retrieve a forward moving iterator to the map.
(Inherited from DefinitionBindingMap)


Public Method

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

)


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

The Remove method is used to remove a parameter binding.


Public Method

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)


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.