Wall.AddAttachment
Description:
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.
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.
public void AddAttachment(
ElementId targetId,
AttachmentLocation attachmentLocation
)
-
targetIdTarget element id.
-
attachmentLocationThe attachment location.
-
-or- wall already has an attachment to targetId.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration