Files
2021-04-20 11:36:21 +02:00

40 lines
3.9 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 PathReinforcement\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 Medium\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display PathReinforcement informations.\line\b Summary:\b0 \line This sample demonstrates how to retrieve curves, profile and properties of path reinforcement object.\f1\par
\b\f0\par
Classes:\b0 \par
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand \par
Autodesk.Revit.DB.Structure.PathReinforcement\f1\par
\f0 Autodesk.Revit.DB.Structure\f1 .\f0 RebarBarType\f1\par
\f0 Autodesk.Revit.DB.ModelCurve\f1\par
\par
\pard\ltrpar\nowidctlpar\b\f0 Project Files:\b0 \par
Command.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a Command class which inherits from IExternalCommand and implements the Execute method. The main function of the class is to show the main dialog.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
PathReinforcementForm.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a PathReinforcementForm class which inherits from Form. The class is the main dialog which contains a picture box and a property grid. The picture box is used to display the curves of the path reinforcement and the property grid is used to display the properties of the path Reinforcement.\par
\pard\ltrpar\nowidctlpar\tab\par
Profile.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a Profile class to store geometry information of path reinforcement\f1 .\f0 The class contains a public method \ldblquote Draw\rdblquote to draw the curves and profile of the path reinforcement.\f1\par
\pard\ltrpar\nowidctlpar\tx720\f0\par
PathReinProperties.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a PathReinProperties class which contains the path reinforcement properties\f1 .\f0 And the properties will be displayed in property grid of PathReinforcementForm\f1 .\par
\pard\ltrpar\nowidctlpar\f0\par
BarTypeConverter.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a BarTypeConverter class used to convert types between ElementId and String.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
MathTools.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file defines a Vector4 and a Matrix4 class used to transform geometry data between 2D and 3D\f1 .\par
\pard\ltrpar\nowidctlpar\f0\par
\b Description:\b0 \par
This sample will get path reinforcement from active document and display its properties in a dialog. Curves of path reinforcement will be displayed in picture box and other data be displayed in property grid. The geometry data can be got by \ldblquote Curves\rdblquote property of path reinforcement and other properties can be got by \ldblquote get_Parameter\rdblquote and \ldblquote Parameters\rdblquote methods.\f1\par
\f0\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 PathReinforcemanes are placed. A sample project file PathReinforcement.rvt is available in the sample\rquote s folder.\par
2.\tab Select one PathReinforcement, Run the command, a form will pop up.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 3.\tab The path and the profile of the selected path reinforcement will be displayed in picture box: path in blue color, profile in red color. \f1\par
\f0 4.\tab The properties of path reinforcement will be displayed in properties grid; user can change some parameters of the path reinforcement via this property grid\f1 .\par
\f0 5.\tab The changed parameters of path will be updated when clicking Ok button.\f1\par
}