ColumnAttachment Class

An object representing the attachment of the top or bottom of a column to some target: a floor, roof, ceiling, beam, or brace.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBColumnAttachment

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ColumnAttachment : IDisposable

The ColumnAttachment type exposes the following members.

Properties
 NameDescription
Public propertyAttachOffset The offset of the column attachment.
Public propertyBaseOrTop Identifies if this ColumnAttachment is at the base or top of the column.
Public propertyCutStyle Identifies whether the column, or the attached element should be cut (or if neither should be cut).
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyJustification Identifies the type of justification to apply to this ColumnAttachment.
Public propertyTargetId The id of the element that is attached to the column and is described by this ColumnAttachment.
Top
Methods
 NameDescription
Public methodStatic memberAddColumnAttachment Attaches the column to the target. If an attachment already exists with the same "baseOrTop" value, no attachment is made.
Public methodDisposeReleases all resources used by the ColumnAttachment
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetColumnAttachment(FamilyInstance, ElementId) Look up a column attachment by specifying the target id.
Public methodStatic memberGetColumnAttachment(FamilyInstance, Int32) Look up a column attachment. There is at most one attachment on the base and one on the top.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidColumn Says whether a FamilyInstance supports column attachments.
Public methodStatic memberIsValidTarget(Boolean, Element) Says whether the element can be used as a target for a new attachment.
Public methodStatic memberIsValidTarget(FamilyInstance, Element) Says whether the element can be used as a target for a new attachment.
Public methodStatic memberRemoveColumnAttachment(FamilyInstance, ElementId) Removes any attachment of the column to the specified target.
Public methodStatic memberRemoveColumnAttachment(FamilyInstance, Int32) Removes an attachment at the top or base of a column, if there is one.
Public methodSetJustification Setter of ColumnAttachmentJustification
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Call IsValidColumn() and IsValidTarget() to verify that specific elements support column attachments. A column has at most one top attachment and one bottom attachment.
See Also