Autodesk.Revit.DB.ColumnAttachmentJustification
类型定义了列附加在网格的哪一侧的对齐方式。
Left
: 列依靠网格的左侧对齐。Right
: 列依靠网格的右侧对齐。// 获取列附加的对齐方式
ColumnAttachmentJustification justification = column.GetAttachmentJustification();
// 判断是否为左对齐
if (justification == ColumnAttachmentJustification.Left)
{
// Do something
}
// 判断是否为右对齐
if (justification == ColumnAttachmentJustification.Right)
{
// Do something else
}