mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 19:09:03 +00:00
28 lines
2.1 KiB
Plaintext
28 lines
2.1 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 DesignOptionReader\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 9.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 LL Autodesk\line\b Programming Language:\b0 VB.NET\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Elements, Basics\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display design options.\line\b Summary:\b0 \line This sample demonstrates how to get the design options in the current document of Revit.\f1\par
|
|
\par
|
|
\b\f0 Classes:\b0 \par
|
|
\pard\ltrpar\fi180\li180 Autodesk.Revit.IExternalCommand\f1\par
|
|
\f0 Autodesk.Revit.Application\par
|
|
Autodesk.Revit.Element\par
|
|
Autodesk.Revit.Elements.DesignOption\par
|
|
\pard\ltrpar\par
|
|
\b Project Files:\b0 \i\par
|
|
\i0 Command.vb\par
|
|
\pard\ltrpar\li360 It contains the class Command which implements interface IExternalCommand. It also retrieves all the design options and sends the names of them to UI.\i\f1\par
|
|
\pard\ltrpar\i0\par
|
|
\f0 DesignOptionsDialog.vb\par
|
|
\pard\ltrpar\li360 This file contains a form class DesignOptionsDialog which consists of a list box that shows the design options.\par
|
|
\pard\ltrpar\f1\par
|
|
\b\f0 Description:\b0 \f1\par
|
|
\f0 This sample provides the following functionality.\f1\par
|
|
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab Iterates all elements in the current project and retrieves all the design options.\f1\par
|
|
\pard\ltrpar\par
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
|
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Prepare your Revit project. \par
|
|
\pard\ltrpar\li360 Open or new a Revit project and make sure there are some design options in the project. A sample project file DesignOptionReader.rvt is available in the sample\rquote s folder.\f1\par
|
|
\f0 [Tip] Design options can be added to project through menu [Tools] - [Design Options]\f1 .\par
|
|
\pard\ltrpar\fi-360\li360\tx360\f0 2.\tab Execute the external Command.\f1\par
|
|
}
|
|
|