向 PropertyLine 类添加了新方法和属性,以增强项目中涉及建筑红线的第三方工作流。以前,PropertyLine 类在没有其自己的专用方法和属性的情况下公开。

公开的 API 完全支持 UI 中提供的“建筑红线”功能,包括:
方法 (12)
public static PropertyLine Create(Document document, IList<CurveLoop> curveLoops) public static PropertyLine Create(Document document,IList<PropertyTableEntry> pt) public static bool IsValidBoundary(IList<CurveLoop> curveLoops) public static bool IsValidPropertyTable(Document document,IList<PropertyTableEntry> pt) public void ConvertToTable() public XYZ GetStart() public void SetStart(XYZ start) public void SetBoundary(IList<CurveLoop> curveLoops) public IList<CurveLoop> GetBoundary() public void SetPropertyTable(IList<PropertyTableEntry> newTable) public IList<PropertyTableEntry> GetPropertyTable() public bool IsClosedLoop()
属性 (1)
public double Area { get; }
| PropertyTableEntry 公开的属性 | PropertyTableEntry 公开的方法 |
|---|---|
public double Distance { get; }
public double Bearing { get; }
public int Id { get; set; }
public PropertyTableEntryArcDirection ArcDirection { get; }
public double Radius { get; }
public PropertyTableEntryCurveType CurveType { get; }
|
public static PropertyTableEntry Create( double distance, double bearing, PropertyTableEntryCurveType curveType, double arcRadius, PropertyTableEntryArcDirection arcDir, int id ) public static bool IsValidPropertyTableEntry( double distance, double bearing, PropertyTableEntryCurveType curveType, double arcRadius, PropertyTableEntryArcDirection arcDir ) |
请参见 Revit API 开发人员手册。
此功能由客户在 Ideas 论坛上提出,并在产品路线图中进行了介绍。