Autodesk.Revit.DB.FamilyPlacementType
类表示在Revit中定义族的放置类型。
枚举成员 | 描述 |
---|---|
Invalid | 无效的放置类型 |
WorkPlaneBased | 基于工作平面的放置类型 |
CurveBased | 基于曲线的放置类型 |
PointBased | 基于点的放置类型 |
以下示例展示如何使用FamilyPlacementType
枚举:
FamilyPlacementType placementType = FamilyPlacementType.WorkPlaneBased;
switch (placementType)
{
case FamilyPlacementType.WorkPlaneBased:
Console.WriteLine("This family is work plane based.");
break;
case FamilyPlacementType.CurveBased:
Console.WriteLine("This family is curve based.");
break;
case FamilyPlacementType.PointBased:
Console.WriteLine("This family is point based.");
break;
default:
Console.WriteLine("Invalid placement type.");
break;
}