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 開發人員指南。