mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 19:09:03 +00:00
37 lines
3.5 KiB
Plaintext
37 lines
3.5 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fswiss\fprq2\fcharset0 Verdana;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 ProjectUnit\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 2008.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 CL Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Data Exchange, Basics\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 List and set units and format options.\line\b Summary:\b0 \line Add a command which lists all the units in the current project and displays their format information; Display the decimal symbol type of current project\rquote s units. Users could set it to comma or dot; Display the slope type of current project units, users can set it to Rise or Angle.\f1\par
|
|
\pard\ltrpar\fi800\par
|
|
\pard\ltrpar\b\f0 Classes:\b0 \f1\par
|
|
\pard\ltrpar\li360\f0 Autodesk.Revit.IExternalCommand \f1\par
|
|
\lang1024\f0 Autodesk.Revit.Elements.ProjectUnit\par
|
|
Autodesk.Revit.FormatOptions\lang1033\f1\par
|
|
\pard\ltrpar\par
|
|
\b\f0 Project Files:\b0 \f1\par
|
|
\f0 Command.cs\f1\par
|
|
\pard\ltrpar\li360\f0 The main DLL source file which contains the class Command which implements interface IExternalCommand. Get necessary data from revit and show the Form. \f1\par
|
|
\pard\ltrpar\fi720\par
|
|
\pard\ltrpar\f0 ProjectUnitData.cs\f1\par
|
|
\pard\ltrpar\li360\f0 This file contains a class which prepares the project unit data.\f1\par
|
|
\pard\ltrpar\par
|
|
\f0 ProjectUnitForm.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360 This file contains a form class which retrieves or changes the project unit setting by API. include the decimal symbol type, the slope typesetting and some other format information.\par
|
|
\pard\ltrpar\f1\par
|
|
\b\f0 Description:\b0 \f1\par
|
|
\f0 This sample should provide the following functionality:\f1\par
|
|
\pard\ltrpar\fi-360\li360\tx360\f2 -\tab\f0 Display the decimal symbol type of current project units and users can set it to comma or dot.\par
|
|
\pard\ltrpar\fi-360\li360\f2 -\tab\f0 Display the slope type of current project units and users can set it to Rise or Angle.\par
|
|
\f2 -\tab\f0 List all the units in current project and display each unit\rquote s format information.\par
|
|
\pard\ltrpar\fi-360\li720\tx720\f2 -\tab\f0 List all the available Unit Discipline of current project in a list box\par
|
|
\pard\ltrpar\fi-360\li720\f2 -\tab\f0 Classify the project units by the Unit Discipline\par
|
|
\f2 -\tab\f0 When users select one Unit Discipline in the list box to display the corresponding project units name (such as Length or Area) and its format information. The format information includes the display unit type (such as DUT_KIP_FEET_PER_DEGREE_PER_FOOT), the unit suffix type (such as UST_NONE), and the rounding (such as 0.2).\par
|
|
\pard\ltrpar\par
|
|
\b Instructions:\cf1\b0 \f1\par
|
|
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Open Revit.\par
|
|
2.\tab Invoke this command.\par
|
|
\pard\ltrpar\fi-360\li360 3.\tab The project unit form lists all the units in current project and displays each unit\rquote s format information.\par
|
|
\pard\ltrpar\fi-360\li360\tx360 4.\tab Users can select the decimal symbol type and slope type of current project units\par
|
|
\pard\ltrpar\fi-360\li360 5.\tab Click the OK button in sample\rquote s main UI.\par
|
|
6.\tab Application will reset the decimal symbol type and slope type.\par
|
|
}
|
|
|