FindInserts Method


Gets the ids of the instances inserted into this host object.

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

Syntax

C#
public IList<ElementId> FindInserts(
	bool addRectOpenings,
	bool includeShadows,
	bool includeEmbeddedWalls,
	bool includeSharedEmbeddedInserts
)
Visual Basic
Public Function FindInserts ( _
	addRectOpenings As Boolean, _
	includeShadows As Boolean, _
	includeEmbeddedWalls As Boolean, _
	includeSharedEmbeddedInserts As Boolean _
) As IList(Of ElementId)
Visual C++
public:
IList<ElementId^>^ FindInserts(
	bool addRectOpenings, 
	bool includeShadows, 
	bool includeEmbeddedWalls, 
	bool includeSharedEmbeddedInserts
)

Parameters

addRectOpenings
Type: SystemBoolean
True if rectangular openings should be included in the return.
includeShadows
Type: SystemBoolean
True if shadows should be included in the return.
includeEmbeddedWalls
Type: SystemBoolean
True if embedded walls should be included in the return.
includeSharedEmbeddedInserts
Type: SystemBoolean
True if shared embedded inserts should be included in the return.

Return Value

All the insertable instances' ids.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →