Files
2024-12-12 10:25:07 +01:00

45 lines
4.1 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue255;}
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 CurvedBeam\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 JJ Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Curved Beam creation.\line\b Summary:\b0 \line This sample demonstrates how to create curved beam, this sample can create three types of curved beam: arc, ellipse and nurbspline.\f1\par
\f0\par
\b Classes:\b0 \par
\pard\ltrpar\fi360 Autodesk.Revit.IExternalCommand\f1\par
\f0 Autodesk.Revit.Elements\f1\par
\f0 Autodesk.Revit.Creation.Document\f1\par
\f0 Autodesk.Revit.Symbols.FamilySymbol\f1\par
\f0 Autodesk.Revit.Elements.FamilyInstance\f1\par
\f0 Autodesk.Revit.Elements.Level\f1\par
\f0 Autodesk.Revit.LocationCurve\f1\par
\f0 Autodesk.Revit.Geometry.Arc\f1\par
\f0 Autodesk.Revit.Geometry.Ellipse\f1\par
\f0 Autodesk.Revit.Geometry.NurbSpline\f1\par
\f0 Autodesk.Revit.Geometry.XYZ\f1\par
\pard\ltrpar\par
\b\f0 Project Files:\b0 \par
CurvedBeam.cs\f1\par
\pard\ltrpar\li360\tx720\f0 This file contains the class Command which inherits from IExternalCommand interface and implements the Execute method; besides, it implements the functionalities to get all levels and structural framing (beam and brace) types from Revit project. Two classes SymbolMap and LevelMap which are for reserving all types of beam and level are contained in this file too.\f1\par
\pard\ltrpar\par
\f0 CurvedBeamForm.cs\f1\par
\pard\ltrpar\li360\f0 This file contains a Form class which consists of two ComboBox controls which will show all structural framing (beam and brace) types and levels of project; two Label control which will set position of new beam; three buttons which will create arc, ellipse, nurbspline beams respectively.\f1\par
\pard\ltrpar\par
\b\f0 Description:\b0 \par
This sample uses FamilySymbol, FamilyInstance, LocationCurve, Arc, Ellipse and NurbSpline classes mostly to get all structural framing types and levels from Revit project, then use them to create new beam.\f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab To get structural framing types and levels of Revit, use ActiveDocument.Elements property.\f1\par
\pard\ltrpar\fi-360\li360\f0 -\tab To get all symbols of a family, use Family.Symbols property.\f1\par
\f0 -\tab To get the category of family symbol, use FamiySybol.Category property.\f1\par
\f0 -\tab To create arc, ellipse and nurbspline, use NewArc, NewEllipse and NewNurbSpline methods of Autodesk.Revit. Creation.Document class respectively.\f1\par
\f0 -\tab To create new beam instance, use NewFamilyInstance method of Autodesk.Revit.Creation.Document class.\par
-\tab To get location and curve of beam, use Location property of FamilyInstance class.\f1\par
\f0 -\tab To change the curve of beam, use Curve property of LocationCurve class.\f1\par
\pard\ltrpar\par
\b\f0 Instructions:\cf1\b0 \f1\par
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Start Revit, make sure there are some structural framing types and levels in project.\f1\par
\f0 2.\tab Run the command, the \ldblquote Curved Beam\rdblquote form will pop up, all the available framing types and levels will be listed in two ComboBox controls.\f1\par
\pard\ltrpar\fi-360\li360\f0 3.\tab Select a type and a level on which beam will be created, input the position of new beam.\f1\par
\f0 4.\tab Click \ldblquote Arc\rdblquote button will create one arc beam, click \ldblquote Partial Ellipse\rdblquote button will create one partial ellipse beam, click \ldblquote Spline\rdblquote button will create one nurbspline beam.\f1\par
\pard\ltrpar\par
\b\f0 Note:\par
\pard\ltrpar\fi-360\li360\tx360\b0 1.\tab The arc, ellipse and nurbspline instances are hard codes.\f1\par
\pard\ltrpar\fi-360\li360\f0 2.\tab Please run the sample in latest version (later than 14th, Dec, 2006).\f1\par
}