AreSolidsEqual Method


Determines whether two solids are identical, potentially offset from each other.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2013

Syntax

C#
public static bool AreSolidsEqual(
	Solid first,
	Solid second,
	out Transform trf
)
Visual Basic
Public Shared Function AreSolidsEqual ( _
	first As Solid, _
	second As Solid, _
	<OutAttribute> ByRef trf As Transform _
) As Boolean
Visual C++
public:
static bool AreSolidsEqual(
	Solid^ first, 
	Solid^ second, 
	[OutAttribute] Transform^% trf
)

Parameters

first
Type: Autodesk.Revit.DBSolid
The first solid.
second
Type: Autodesk.Revit.DBSolid
The second solid
trf
Type: Autodesk.Revit.DBTransform%
The offset transform

Return Value

True if they are identical, false otherwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

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 →