SetParamValue Method


Sets the text for the given cell, returns true if successful, false otherwise

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)

Syntax

C#
public bool SetParamValue(
	SectionType sectionType,
	int nRow,
	int nCol,
	string sValue
)
Visual Basic
Public Function SetParamValue ( _
	sectionType As SectionType, _
	nRow As Integer, _
	nCol As Integer, _
	sValue As String _
) As Boolean
Visual C++
public:
bool SetParamValue(
	SectionType sectionType, 
	int nRow, 
	int nCol, 
	String^ sValue
)

Parameters

sectionType
Type: Autodesk.Revit.DB SectionType
The associated section
nRow
Type: System Int32
Row Number of the Section
nCol
Type: System Int32
Column Number of the Section
sValue
Type: System String
String value to set the parameter

Return Value

Returns whether the function succeeded

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentOutOfRangeException The given row number nRow is invalid. -or- The given column number nCol is invalid. -or- Thrown if there is no parameter at this cell -or- A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.Exceptions InvalidOperationException Thrown if attempt to call on a template

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →