C# Class Revit.SDK.Samples.NewRoof.RoofsManager.CS.RoofsManager

The RoofsManager is used to manage the operations between Revit and UI.
ファイルを表示 Open project: AMEE/revit

Public Properties

Property Type Description
RoofKind CreateRoofKind

Public Methods

Method Description
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.

Private Methods

Method Description
Initialize ( ) : void

Initialize the data member

Method Details

AbortTransaction() public method

Abort a transaction.
public AbortTransaction ( ) : TransactionStatus
return TransactionStatus

BeginTransaction() public method

Begin a transaction.
public BeginTransaction ( ) : TransactionStatus
return TransactionStatus

CreateExtrusionRoof() public method

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.
return ExtrusionRoof

CreateFootPrintRoof() public method

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.
return FootPrintRoof

EndTransaction() public method

Finish a transaction.
public EndTransaction ( ) : TransactionStatus
return TransactionStatus

RoofsManager() public method

The constructor of RoofsManager class.
public RoofsManager ( ExternalCommandData commandData ) : System
commandData ExternalCommandData The ExternalCommandData
return System

SelectFootPrint() public method

Select elements in Revit to obtain the footprint roof lines.
public SelectFootPrint ( ) : CurveArray
return CurveArray

SelectProfile() public method

Select elements in Revit to obtain the extrusion profile lines.
public SelectProfile ( ) : CurveArray
return CurveArray

WindowSelect() public method

Select elements in Revit to obtain the footprint roof lines or extrusion profile lines.
public WindowSelect ( ) : CurveArray
return CurveArray

Property Details

RoofKind public_oe property

public CreateRoofKind RoofKind
return CreateRoofKind