2027 Method
Changes 6
M

Wall.IsValidTargetAttachment

Description:
Says whether the element id can be used as a target for a new attachment.
Remarks:
Valid targets are roofs, floors, ceilings, toposolids, or other walls.
public static bool IsValidTargetAttachment(
	Document doc,
	ElementId targetId
)
  • doc
    Current Revit document.
  • targetId
    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.