GetCell Method


Get the specified cell located by the intersection of the grid lines.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public CurtainCell GetCell(
	ElementId uGridLineId,
	ElementId vGridLineId
)
Visual Basic
Public Function GetCell ( _
	uGridLineId As ElementId, _
	vGridLineId As ElementId _
) As CurtainCell
Visual C++
public:
CurtainCell^ GetCell(
	ElementId^ uGridLineId, 
	ElementId^ vGridLineId
)

Parameters

uGridLineId
Type: Autodesk.Revit.DB ElementId
The id of a grid line in the U-direction used to locate the cell.
vGridLineId
Type: Autodesk.Revit.DB ElementId
The id of a grid line in the V-direction used to locate the cell.

Return Value

The cell.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException Thrown if the grid line ids are not part of this curtain grid.

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 →