mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-06 05:01:35 +00:00
35 lines
3.2 KiB
Plaintext
35 lines
3.2 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 Openings\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.1\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 High\line\b Category:\b0 Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display Opening informations.\line\b Summary:\b0 \line Shows how to get geometry profile and properties of an opening and how to add x model lines to opening bounding box.\f1\par
|
|
\par
|
|
\b\f0 Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand\par
|
|
Autodesk.Revit.DB.Opening\par
|
|
Autodesk.Revit.DB.Document\par
|
|
\pard\ltrpar\nowidctlpar\li720\par
|
|
\pard\ltrpar\nowidctlpar\b Project Files:\b0 \par
|
|
Command.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a Command class which inherits from IExternalCommand. The class implements the Execute method. The main functionality of the class is to get all openings in the project and gain information from it\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
OpeningInfo.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines an OpeningInfo class to store information of openings in active document.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
OpeningProperty.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines an OpeningProperty class which contains the properties\f1 .\f0 And the properties will be displayed in PropertyGrid of Form.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
OpeningForm.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines an OpeningForm class which consists of a PictureBox and a PropertyGrid controls. The picture box displays the profile of the selected opening and the PropertyGrid control shows the properties of the selected opening.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
CreateModelLineOptionsForm.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a CreateModelLineOptionsForm class which inherits from Form. The functionality of this class is creating ModelLine for opening bounding box\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Description:\b0 \par
|
|
This sample retrieves all openings in active document and displays the profile and properties of the selected opening. The openings can be retrieved by iterating the document\rquote s elements. And then the profile will be shown in a PictureBox control and the properties will be shown in a PropertyGrid control. The ModelLine can be created by NewModelCurve method of Document.\par
|
|
\par
|
|
\b Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Open or new a Revit project and make sure some Openings are placed. A sample project file Openings.rvt is available in the sample\rquote s folder.\f1\par
|
|
\f0 2.\tab Run the command, a form will pop up.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 3.\tab To review the profile and properties of one Opening, select it from the ComboBox control.\f1\par
|
|
\f0 4.\tab Click \ldblquote Add X Model Line\rdblquote button to add x model lines for opening bounding box\f1 .\f0 \f1\par
|
|
}
|
|
|