RevitLookup.Test.SDKSamples.CreateSheet.Views.GenerateSheet C# (CSharp) Method

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
        public void GenerateSheet(Document doc)
        {
            if (0 == m_selectedViews.Size) {
                MessageBox.Show("No view was selected, sheet generation cancelled.");
                return;
            }

            ViewSheet sheet = ViewSheet.Create(doc, m_titleBlock.Id);
            sheet.Name = m_sheetName;
            PlaceViews(m_selectedViews, sheet);
        }

Usage Example

Exemplo n.º 1
0
    GenerateSheet()
    {
      Document doc = m_revitApp.ActiveUIDocument.Document;
      CreateSheet.Views view = new CreateSheet.Views( doc );

      CreateSheet.AllViewsForm dlg = new CreateSheet.AllViewsForm( view );
      if( dlg.ShowDialog() == DialogResult.OK )
        view.GenerateSheet( doc );
    }
All Usage Examples Of RevitLookup.Test.SDKSamples.CreateSheet.Views::GenerateSheet