IsValidTarget Method (Boolean, Element)


Column Attachment Is Valid Target(Boolean, Element) Method

Says whether the element can be used as a target for a new attachment.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsValidTarget(
	bool forSlantedColumn,
	Element target
)

Parameters

forSlantedColumn Boolean
If true, check whether the target is valid for a slanted column; if false, check whether the target is valid for a vertical column.
target Element
A proposed target element for a column attachment.

Return Value

Boolean
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
Valid targets are roofs, floors, ceilings, levels. Beams and braces are valid targets, except for slanted columns.
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 →