Files
RevitSdkSamples/SDK/Samples/Reinforcement/CS/ReadMe_Reinforcement.rtf
T
2021-04-20 11:36:21 +02:00

57 lines
4.8 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 Reinforcement\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.1\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 High\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create Rebars.\line\b Summary:\b0 \line Show how to create Rebar in concrete element (Beam or Column) which does not have any reinforcement.\par
\b\par
Classes:\b0 \par
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand \par
Autodesk.Revit.Creation.Document\f1\par
\f0 Autodesk.Revit.DB.Structure.Rebar\par
Autodesk.Revit.DB.Structure.StructuralType\par
\pard\ltrpar\nowidctlpar\li720\par
\pard\ltrpar\nowidctlpar\b Project Files:\b0 \par
Command.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines the class Command which inherits from IExternalCommand interface and implements the Execute method. The function of Execute method is to display a model dialog to create Rebar for the selected element.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
FramReinMaker.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines FramReinMaker class which is derived by BeamFramReinMaker and ColumnFramReinMaker\f1 . \f0 The function of these classes is to create Rebar for the selected host elements. If the selected element is a Beam, the maker is BeamFramReinMaker. If the selected element is a Column, the maker is ColumnFramReinMaker.\par
\pard\ltrpar\nowidctlpar\par
BeamFramReinMaker.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines BeamFramReinMaker class which inherits from FramReinMaker. it is used to create Rebar for Beam.\par
\pard\ltrpar\nowidctlpar\par
ColumnFramReinMaker.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines ColumnFramReinMaker class which inherits from FramReinMaker. It is used to create Rebar for Column.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
BeamFramReinMakerForm.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines BeamFramReinMakerForm class which inherits from Form. The function of this class is to prepare parameters for Beam creation\f1 .\par
\pard\ltrpar\nowidctlpar\f0\par
ColumnFramReinMakerForm.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines ColumnFramReinMakerForm class which inherits from Form. The function of this class is to prepare parameters for Column creation\f1 .\par
\pard\ltrpar\nowidctlpar\f0\par
GeomData.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines classes BeamRebarData and ColumnRebarData. They could store information support beam and column reinforcement creation.\par
\pard\ltrpar\nowidctlpar\par
GeometrySupport.cs\par
\pard\ltrpar\nowidctlpar\li360 As The base class, it could support BeamGeometrySupport and ColumnGeometrySupport.and the class also could store some common geometry information. And give some helper functions\f1 .\par
\pard\ltrpar\nowidctlpar\f0\par
BeamGeometrySupport.cs\par
\pard\ltrpar\nowidctlpar\li360 As the geometry support for reinforcement creation on beam\f1 ,\f0 it could prepare the geometry information for top rebar, bottom and transverse rebar creation.\par
\pard\ltrpar\nowidctlpar\par
ColumnGeometrySupport.cs\tab\par
\pard\ltrpar\nowidctlpar\li360 As the geometry support for reinforcement creation on column, it could prepare the geometry information for transverse and vertical rebar creation.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
GeomUtil.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines GeomUtil class which provides the base geometry operation and it is a static class.\par
\par
\pard\ltrpar\nowidctlpar ParameterUtil.cs\par
\pard\ltrpar\nowidctlpar\li360 This file defines ParameterUtil class which contains utility methods to find or set certain parameter and it is a static class.\par
\pard\ltrpar\nowidctlpar\par
\b Description:\b0 \par
This sample use Autodesk.Revit.Creation.Document.NewRebar method to create Rebar for the selected host. NewRebar method needs two parameters RebarBarType and RebarHookType. These two parameters can be got by iterating the active document elements. \tab\par
\par
\b Instructions:\cf1\b0 \cf0\par
\pard\ltrpar\nowidctlpar\fi-420\li420\tx420 1.\tab Open or new a Revit project and make sure some Concrete Beams or Columns without any Reinforcement are placed. A sample project file Reinforcement.rvt is available in the sample\rquote s folder.\par
2.\tab Select a concrete Beam or Column\f1 ,\f0 Run the command.\f1\par
\pard\ltrpar\nowidctlpar\fi-420\li420\f0 3.\tab Set the parameters for the rebar in the pop up dialog.\f1\par
\f0 4.\tab Click Ok, Rebar for the selected element (Beam or Column) will be created.\f1\par
}