C# Class Revit.SDK.Samples.AllViews.CS.ViewsMgr

Generating a new sheet that has all the selected views placed in.
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
ChooseTitleBlock ( string name ) : void

Retrieve the title block to be generate by its name.

GenerateSheet ( System.Windows.Forms.Document doc ) : void

Generate sheet in active document.

SelectViews ( ) : void

Retrieve the checked view from tree view.

ViewsMgr ( System.Windows.Forms.Document doc ) : System

Constructor of views object.

Private Methods

Method Description
AssortViews ( string view, string type ) : void

Assort all views for tree view displaying.

CalculateDistance ( BoundingBoxUV bBox, int amount, double &x, double &y ) : void

Calculate the appropriate distance between the views lay on the sheet.

GetAllViews ( System.Windows.Forms.Document doc ) : void

Finds all the views in the active document.

GetOffSet ( BoundingBoxUV bBox, double x, double y ) : Autodesk.Revit.DB.UV

Retrieve the appropriate origin.

GetTitleBlocks ( System.Windows.Forms.Document doc ) : void

Retrieve all available title blocks in the currently active document.

PlaceViews ( ViewSet views, ViewSheet sheet ) : void

Place all selected views on this sheet's appropriate location.

Rescale ( Autodesk view, double x, double y ) : void

Rescale the view's Scale value for suitable.

Method Details

ChooseTitleBlock() public method

Retrieve the title block to be generate by its name.
public ChooseTitleBlock ( string name ) : void
name string The title block's name
return void

GenerateSheet() public method

Generate sheet in active document.
public GenerateSheet ( System.Windows.Forms.Document doc ) : void
doc System.Windows.Forms.Document the currently active document
return void

SelectViews() public method

Retrieve the checked view from tree view.
public SelectViews ( ) : void
return void

ViewsMgr() public method

Constructor of views object.
public ViewsMgr ( System.Windows.Forms.Document doc ) : System
doc System.Windows.Forms.Document the active document
return System