Attaches the wall to the target. If an attachment already
exists with the same "attachmentLocation" value, an exception is thrown.
The target should be a roof, floor, ceiling, toposolid, or other wall.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic void AddAttachment(
ElementId targetId,
AttachmentLocation attachmentLocation
)
Public Sub AddAttachment (
targetId As ElementId,
attachmentLocation As AttachmentLocation
)
public:
void AddAttachment(
ElementId^ targetId,
AttachmentLocation attachmentLocation
)
member AddAttachment :
targetId : ElementId *
attachmentLocation : AttachmentLocation -> unit
Parameters
- targetId ElementId
-
Target element id.
- attachmentLocation AttachmentLocation
-
The attachment location.
Exceptions
See Also