IsSameAs Method


Compare this fabrication part with the part passed and checks the pattern dimensions and options. A list of fields that can be ignored in the comparison check can be specified.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2018

Syntax

C#
public bool IsSameAs(
	FabricationPart part,
	IList<FabricationPartCompareType> ignoreFields
)
Visual Basic
Public Function IsSameAs ( _
	part As FabricationPart, _
	ignoreFields As IList(Of FabricationPartCompareType) _
) As Boolean
Visual C++
public:
bool IsSameAs(
	FabricationPart^ part, 
	IList<FabricationPartCompareType>^ ignoreFields
)

Parameters

part
Type: Autodesk.Revit.DBFabricationPart
The part to compare this part with.
ignoreFields
Type: System.Collections.GenericIListFabricationPartCompareType
Array of types of data to ignore from the comparison check.

Return Value

Returns true if the fabrication parts are the same.

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 →