ColumnAttachment.AddColumnAttachment
Description:
Attaches the column to the target. If an attachment already exists with the same "baseOrTop" value, no attachment is made.
Attaches the column to the target. If an attachment already exists with the same "baseOrTop" value, no attachment is made.
Remarks:
This method modifies both column and target elements.
This method modifies both column and target elements.
public static void AddColumnAttachment(
Document doc,
FamilyInstance column,
Element target,
int baseOrTop,
ColumnAttachmentCutStyle cutColumnStyle,
ColumnAttachmentJustification justification,
double attachOffset
)
-
docThe document containing column and target.
-
columnA column.
-
targetA target element.
-
Int32baseOrTop0 to attach the column base, 1 to attach the column top.
-
cutColumnStyleControl the handling of columns that intersect their targets.
-
justificationControl the column extent in cases where the target is not a uniform height.
-
DoubleattachOffsetAn additional offset for the bottom. If positive, the column base or top will be higher than the attachment point; if negative, lower.
-
column is not a column that supports ColumnAttachments. -or- target is not a valid target for ColumnAttachments. -or- column already has an attachment at its base or top as specified by baseOrTop. -or- column already has an attachment to target.
-
A non-optional argument was NULL
-
baseOrTop must be either 0 or 1. -or- The given value for attachOffset must be no more than 30000 feet in absolute value. -or- A value passed for an enumeration argument is not a member of that enumeration