GetInstanceCutoutFromWall Method


Gets the curve loop corresponding to the hole in the wall made by the instance.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2014

Syntax

C#
public static CurveLoop GetInstanceCutoutFromWall(
	Document pADoc,
	Wall pVWall,
	FamilyInstance pFamInst,
	out XYZ pCutDir
)
Visual Basic
Public Shared Function GetInstanceCutoutFromWall ( _
	pADoc As Document, _
	pVWall As Wall, _
	pFamInst As FamilyInstance, _
	<OutAttribute> ByRef pCutDir As XYZ _
) As CurveLoop
Visual C++
public:
static CurveLoop^ GetInstanceCutoutFromWall(
	Document^ pADoc, 
	Wall^ pVWall, 
	FamilyInstance^ pFamInst, 
	[OutAttribute] XYZ^% pCutDir
)

Parameters

pADoc
Type: Autodesk.Revit.DB Document
The document.
pVWall
Type: Autodesk.Revit.DB Wall
The host wall.
pFamInst
Type: Autodesk.Revit.DB FamilyInstance
The hosted instance.
pCutDir
Type: Autodesk.Revit.DB XYZ %
The direction of the hole relative to the location of the curve loop.

Return Value

The opening in the wall.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException 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 →