C# Класс Revit.SDK.Samples.NewRoof.RoofsManager.CS.RoofsManager

The RoofsManager is used to manage the operations between Revit and UI.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
RoofKind CreateRoofKind

Открытые методы

Метод Описание
AbortTransaction ( ) : TransactionStatus

Abort a transaction.

BeginTransaction ( ) : TransactionStatus

Begin a transaction.

CreateExtrusionRoof ( ReferencePlane refPlane, Level level, RoofType roofType, double extrusionStart, double extrusionEnd ) : ExtrusionRoof

Create a extrusion roof.

CreateFootPrintRoof ( Level level, RoofType roofType ) : FootPrintRoof

Create a footprint roof.

EndTransaction ( ) : TransactionStatus

Finish a transaction.

RoofsManager ( ExternalCommandData commandData ) : System

The constructor of RoofsManager class.

SelectFootPrint ( ) : CurveArray

Select elements in Revit to obtain the footprint roof lines.

SelectProfile ( ) : CurveArray

Select elements in Revit to obtain the extrusion profile lines.

WindowSelect ( ) : CurveArray

Select elements in Revit to obtain the footprint roof lines or extrusion profile lines.

Приватные методы

Метод Описание
Initialize ( ) : void

Initialize the data member

Описание методов

AbortTransaction() публичный Метод

Abort a transaction.
public AbortTransaction ( ) : TransactionStatus
Результат TransactionStatus

BeginTransaction() публичный Метод

Begin a transaction.
public BeginTransaction ( ) : TransactionStatus
Результат TransactionStatus

CreateExtrusionRoof() публичный Метод

Create a extrusion roof.
public CreateExtrusionRoof ( ReferencePlane refPlane, Level level, RoofType roofType, double extrusionStart, double extrusionEnd ) : ExtrusionRoof
refPlane ReferencePlane The reference plane for the extrusion roof.
level Level The reference level of the roof to be created.
roofType RoofType The type of the newly created roof.
extrusionStart double The extrusion start point.
extrusionEnd double The extrusion end point.
Результат ExtrusionRoof

CreateFootPrintRoof() публичный Метод

Create a footprint roof.
public CreateFootPrintRoof ( Level level, RoofType roofType ) : FootPrintRoof
level Level The base level of the roof to be created.
roofType RoofType The type of the newly created roof.
Результат FootPrintRoof

EndTransaction() публичный Метод

Finish a transaction.
public EndTransaction ( ) : TransactionStatus
Результат TransactionStatus

RoofsManager() публичный Метод

The constructor of RoofsManager class.
public RoofsManager ( ExternalCommandData commandData ) : System
commandData ExternalCommandData The ExternalCommandData
Результат System

SelectFootPrint() публичный Метод

Select elements in Revit to obtain the footprint roof lines.
public SelectFootPrint ( ) : CurveArray
Результат CurveArray

SelectProfile() публичный Метод

Select elements in Revit to obtain the extrusion profile lines.
public SelectProfile ( ) : CurveArray
Результат CurveArray

WindowSelect() публичный Метод

Select elements in Revit to obtain the footprint roof lines or extrusion profile lines.
public WindowSelect ( ) : CurveArray
Результат CurveArray

Описание свойств

RoofKind публичное свойство

public CreateRoofKind RoofKind
Результат CreateRoofKind