Method SetNamedValue
SetNamedValue(ElementExId, string, SmartObject)
Sets the value of the given parameter. The kind of SmartObject is fixed by the ParameterType: SmartInteger for integer parameter, SmartReal for real parameter, et caetera... Bound parameters must be set by the according functions.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 13, 0, 0)]
bool SetNamedValue(ElementExId inElementId, string inName, SmartObject inValue)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementExId | inElementId | Element owner of the parameter. |
| string | inName | Full or partial name of the parameter to fix. |
| SmartObject | inValue | New value. |
Returns
| Type | Description |
|---|---|
| bool | True if the value has been changed. False if the value have not changed. |
Remarks
Warning : this function is only usable for Real, Int, Bool and Text parameters. All other types are not available here.