mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 14:41:37 +00:00
35 lines
3.0 KiB
Plaintext
35 lines
3.0 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab420{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
{\info{\horzdoc}{\*\lchars (.<?[\'7b\'ab\'b7\'91\'93}{\*\fchars !"'),.:\'3b>?]`|\'7d~\'a8\'af\'b7\'bb\'92\'94\'85}}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 AllViews\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Medium\line\b Category:\b0 Views\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Generate a new sheet that includes all the selected views.\line\b Summary:\b0 \line This sample demonstrates how to generate a new sheet that includes all the selected views.\f1\par
|
|
\f0\par
|
|
\b Classes:\b0 \f1\par
|
|
\pard\ltrpar\nowidctlpar\fi360\f0 Autodesk.Revit.DB.View\par
|
|
Autodesk.Revit.DB.ViewSet\par
|
|
Autodesk.Revit.Creation.Document.NewViewSheet\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Project Files:\cf1\b0\f1\par
|
|
\cf0\f0 AllViews.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 It contains two classes:\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780\tx720\tx780 -\tab The class Command which implements interface IExternalCommand, it is the entry of this external command.\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780 -\tab The class ViewsMgr is responsible for generating a new sheet that has all the selected views placed in.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
AllViewsForm.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 It contains the class AllViewsForm which is a dialog. Following are the contents for this dialog:\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780\tx720\tx780 -\tab A tree view represents all the views which can be placed in sheet.\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780 -\tab A list of all title blocks that users can select one to create sheet\f1 .\par
|
|
\f0 -\tab A text box for users to input the name of the sheet to be created.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Description:\b0 \f1\par
|
|
\f0 This sample demonstrates the following functionalities:\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780\tx780 -\tab Finds all the views and title blocks in the current project and display the names in a tree view. The user can select several views. When OK button is clicked\f1 ,\f0 a new sheet is generated that has all the selected views placed in.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780\f0 -\tab The most important class is ViewsMgr\f1 .\f0 It shows how to get all views from document, and how to generate a new sheet via RevitAPI.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Run this external command.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Select the title block for the sheet being generated\f1 .\f0\par
|
|
3.\tab Select views you want to place in the new sheet.\par
|
|
4.\tab Click OK button to generate new sheet.\par
|
|
\pard\ltrpar\nowidctlpar\qj\kerning2\f1\fs21\par
|
|
}
|
|
|