BindingMapInsert(Definition, Binding) Method |
Creates a new parameter binding between a parameter and a set of categories.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic override bool Insert(
Definition key,
Binding item
)
Public Overrides Function Insert (
key As Definition,
item As Binding
) As Boolean
public:
virtual bool Insert(
Definition^ key,
Binding^ item
) override
abstract Insert :
key : Definition *
item : Binding -> bool
override Insert :
key : Definition *
item : Binding -> bool
Parameters
- key Definition
- A parameter definition which can be an existing definition or one from a shared parameters file.
- item Binding
- An InstanceBinding or TypeBinding object which contains the set of categories to which the parameter should be bound.
Return Value
Boolean
RemarksNote the type of the binding object dictates whether the parameter is bound to all
instances or just types. A parameter definition cannot be bound to both instances and types.
If the parameter binding already exists, post an error and return false.
See Also