mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-14 00:34:18 +00:00
33 lines
3.0 KiB
Plaintext
33 lines
3.0 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fmodern\fprq1\fcharset0 Courier New;}{\f2\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 SpotDimension\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2008.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Annotation\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display Spot Dimensions.\line\b Summary:\b0 \line This sample demonstrates\f1 \f0 how to retrieve all the spot dimensions and theirs properties in all views of Revit document\f2 .\par
|
|
\b\par
|
|
\f0 Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand\f2\par
|
|
\f0 Autodesk.Revit.DB.SpotDimension\f2\par
|
|
\f0 Autodesk.Revit.DB.Parameter\f2\par
|
|
\pard\ltrpar\nowidctlpar\fi361\b\par
|
|
\pard\ltrpar\nowidctlpar\f0 Project Files:\cf1\b0\par
|
|
\cf0\f2\par
|
|
\f0 SpotDimensionsData.cs\f2\par
|
|
\pard\ltrpar\nowidctlpar\fi360\f0 This file contains the functions that how to get all the spot dimensions\f2 .\par
|
|
\pard\ltrpar\nowidctlpar\fi240\par
|
|
\pard\ltrpar\nowidctlpar\f0 SpotDimensionParams.cs\f2\par
|
|
\pard\ltrpar\nowidctlpar\fi360\f0 This file contains the function that how to get a spot dimension\rquote s properties.\f2\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Description:\b0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\fs24 -\tab\fs20 Get spot dimensions in all views\f2 .\f0 All the spot dimensions can be retrieved by scanning Elements of Document.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\fs24 -\tab\fs20 There is a dialog to show these spot dimensions according to its View property and some information of them.\par
|
|
\fs24 -\tab\fs20 If one spot dimension was selected in dialog when return to Revit, it can be highlighted.\par
|
|
\fs24 -\tab\fs20 Classify spot dimension according to its View property. Spot dimensions in same view will be displayed together.\par
|
|
\fs24 -\tab\fs20 Select view from a list, and then spot dimensions in it are displayed.\par
|
|
\fs24 -\tab\fs20 Select spot dimension from a list, then some of its parameters are displayed.\par
|
|
\fs24 -\tab\fs20 Parameters can be got via DimensionType.get_Parameter() and some properties of the SpotDimension Class.\par
|
|
\pard\ltrpar\nowidctlpar\b\par
|
|
Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab First draw an element (for example a wall), and then draw some spot dimensions with Revit Menu Command: Drafting->Spot Dimension tool in Revit UI.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Load and run the SpotDimension.dll.\par
|
|
3.\tab Select a view to show all the spot dimensions in that selected view. And then select a spot dimension to show its properties in a DataGridView at the bottom of the dialog.\par
|
|
4.\tab Select a spot dimension, and then close the dialog to return Revit, then the spot dimension will be highlighted afterwards\f2 .\f0\par
|
|
}
|
|
|