В класс PropertyLine были добавлены новые методы и свойства для оптимизации сторонних рабочих процессов, связанных с границами участка в проектах. Ранее класс PropertyLine предоставлялся без собственных методов и свойств.

Предоставляемый API-интерфейс обеспечивает полную поддержку функций границ участка, доступных в пользовательском интерфейсе, включая следующие:
Методы (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 ) |
См. раздел Руководство для разработчиков API Revit.
Эта функция была предложена пользователями на форуме идей и описана в стратегическом плане развития программы.