Files
RevitSdkSamples/SDK/Samples/NewPathReinforcement/CS/ReadMe_NewPathReinforcement.rtf
T
2019-09-11 14:43:53 +02:00

49 lines
4.3 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033\deftab420{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\info{\horzdoc}{\*\lchars ([\'7b}{\*\fchars !),.:\'3b?D]\'7d}}
\viewkind4\uc1\pard\ltrpar\nowidctlpar\qj\kerning2\b\f0\fs20 Application:\b0 NewPathReinforcement\line\b Revit Platform:\b0 Structure\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 , Geometry\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create PathReinforcement.\line\b Summary:\b0 \line\fs21 This sample demonstrates\fs20 how to create PathReinforcement by API.\b\par
\par
Classes: \par
\pard\ltrpar\nowidctlpar\fi360\kerning0\b0 Autodesk.Revit.UI.IExternalCommand\par
Autodesk.Revit.DB.Structure.PathReinforcement \par
Autodesk.Revit.DB.Structure.PathReinforcementType\par
Autodesk.Revit.DB.Face\par
Autodesk.Revit.DB.Edge\par
Autodesk.Revit.DB.Solid\par
Autodesk.Revit.Creation.Document\par
\pard\ltrpar\nowidctlpar\qj\kerning2\par
\b Project Files: \par
\b0 Command.cs\par
\pard\ltrpar\nowidctlpar\li360\kerning0 This file contains a class Command that implements the IExternalCommand, gets the selected wall or floor and creates PathReinforcement on it.\par
\par
\pard\ltrpar\nowidctlpar\qj\kerning2 NewPathReinforcementForm.cs\par
\pard\ltrpar\nowidctlpar\li360\kerning0 This file contains a class NewPathReinforcementForm which inherits from Form, the function of this class is to display the selected Wall or Floor profile and let user draw path of PathReinforcement on it.\par
\par
\pard\ltrpar\nowidctlpar\qj\kerning2 Profile.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720\kerning0 This file contains an abstract class Profile which is derived by ProfileWall and ProfileFloor. Profile includes two methods Draw2D() and CreatePathReinforcement(), Draw2D() is used to draw profile on the form, and CreatePathReinforcement() is used to create PathReinforcement on the selected Wall or Floor.\par
\pard\ltrpar\nowidctlpar\fi360\qj\kerning2\par
\pard\ltrpar\nowidctlpar\qj LineTool.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720\kerning0 This file contains a class named LineTool which provides some methods to draw lines on the form and store the data of drawn lines.\par
\pard\ltrpar\nowidctlpar\fi360\qj\kerning2\par
\pard\ltrpar\nowidctlpar\qj MathTools.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720\kerning0 This file contains Verctor4 and Matrix4 two classes. These two classes are used to transform points between 3D and 2D.\par
\pard\ltrpar\nowidctlpar\qj\kerning2\par
\b Description:\b0 \par
\pard\ltrpar\nowidctlpar This sample shows user how to create PathReinforcement by \par
NewPathReinforcement(PathReinforcementType, Element, CurveArray, bool) method:\par
\pard\ltrpar\nowidctlpar\fi-360\li360\ri659\qj\tx360\tx7740 -\tab Use Document.Create.NewPathReinforcementType() method to create one PathReinforcementType if there is no PathReinforcementType in current document.\par
\pard\ltrpar\nowidctlpar\fi-360\li360\qj\tx360 -\tab Element here stands for the host of the PathReinforcement, a wall or a floor.\par
\pard\ltrpar\nowidctlpar\fi-360\li360\qj -\tab CurveArray stores the Path of the PathReinforcement.\par
\pard\ltrpar\nowidctlpar\fi-360\li360\ri1018\qj\tx360\tx7560 -\tab bool value indicates the PathReinforcement lies to which side of Path.\par
\pard\ltrpar\nowidctlpar\qj\par
\b Instructions:\b0 \par
\pard\ltrpar\nowidctlpar\fi-420\li420\qj\tx420 1.\tab Draw a Structure Wall or Slab (or open NewPathReinforcement.rvt) and select it.\par
\pard\ltrpar\nowidctlpar\fi-420\li420\qj 2.\tab Run this command.\par
3.\tab Draw the path of PathReinforcement you want to create, user can click right mouse button to finish drawing.\par
4.\tab Click the \ldblquote Preview\rdblquote will preview the path reinforcement will be created.\par
5.\tab Select or unselect \ldblquote Flip\rdblquote check box to create PathReinforcement on the left or right side of the path which you drawn.\par
6.\tab Click \ldblquote Create\rdblquote button will create PathReinforcement when you finish the path.\par
7.\tab User can clean and redraw the sketch of path when click \ldblquote Clean\rdblquote button.\par
\pard\ltrpar\nowidctlpar\qj\fs21\par
\f1\par
}