RebarContainerParameterManager.AddOverride(ElementId, Double)
Method
Description:
Adds an override for the given parameter as its value will be displayed for the Rebar Container element.
Adds an override for the given parameter as its value will be displayed for the Rebar Container element.
Examples
// Override the value for A and set the parameter to modifiable for the given rebar container
void ManageParameters(RebarContainer container)
{
RebarContainerParameterManager paramManager = container.GetParametersManager();
Parameter aParam = container.LookupParameter("A");
if (aParam != null)
{
paramManager.AddOverride(aParam.Id, 0.4);
paramManager.SetOverriddenParameterModifiable(aParam.Id);
}
}
Parameters
Parameter | Type | Description |
---|---|---|
paramId | ElementId | The id of the parameter |
value | Double | The override value of the parameter. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | paramId is not the id of a parameter in the current document, or its value type is not double. -or- paramId is not a Rebar Container parameter |
ArgumentNullException | A non-optional argument was null |