Says whether the element id can be used as a target for a new attachment.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static bool IsValidTargetAttachment(
Document doc,
ElementId targetId
)
Parameters
- doc Document
-
Current Revit document.
- targetId ElementId
-
A proposed target element id for a wall attachment.
Return Value
Boolean
Returns true if the element id can be used as a target for a new attachment, false otherwise.
Exceptions
Remarks
Valid targets are roofs, floors, ceilings, toposolids, or other walls.
See Also
Reference