Files
2024-12-12 09:51:40 +01:00

38 lines
2.8 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 NewOpenings\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 High\line\b Category:\b0 Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create openings.\line\b Summary:\b0 \line Shows how to create Openings by Revit API.\par
\b\par
Classes:\b0 \f1\par
\pard\ltrpar\nowidctlpar\fi360\f0 Autodesk.Revit.Creation.Application\par
Autodesk.Revit.Creation.Document\par
Autodesk.Revit.DB.Wall\par
Autodesk.Revit.DB.Floor\f1\par
\f0 Autodesk.Revit.DB.Opening\f1\par
\f0 Autodesk.Revit.DB.XYZ\f1\par
\f0 Autodesk.Revit.DB.Edge\par
\pard\ltrpar\nowidctlpar\li720\f1\par
\pard\ltrpar\nowidctlpar\b\f0 Project Files:\b0 \par
Command.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file contains a class Command that implements the IExternalCommand, the function of it is to show the main Form.\par
\pard\ltrpar\nowidctlpar\par
NewOpeningsForm.cs\par
\pard\ltrpar\nowidctlpar\li360\tx720 This file contains a class NewOpeningsForm. The function of this class is to display the selected Wall or Floor profile and to draw geometry on it.\par
\pard\ltrpar\nowidctlpar\par
Profile.cs\par
\pard\ltrpar\nowidctlpar\li360 This file contains an abstract class Profile which derived by ProfileWall and ProfileFloor. Includes two methods Draw2D and DrawOpening, Draw2D is used to draw profile on the form, and DrawOpening is used to create opening on the selected Wall or Floor.\par
\pard\ltrpar\nowidctlpar\par
ITool.cs\par
\pard\ltrpar\nowidctlpar\li360 This file contains an Abstract class ITool which derived by ArcTool, NullTool, RectTool, CircleTool, LineTool. They are used to draw various geometries on NewOpeningsForm.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
MathTools.cs\par
\pard\ltrpar\nowidctlpar\li360 This file contains Verctor4 and Matrix4 two classes. These two classes are used to transforming points from 3d to 2d.\par
\pard\ltrpar\nowidctlpar\par
\b Description:\par
\b0 This sample use Document.NewOpening method to create opening on the selected Wall or Floor. The profile can be created by NewCurveArray, NewArc and NewLine methods of Application.\f1\par
\f0\tab\par
\b Instructions: \f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\b0\f0 1.\tab Select a wall or a floor.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Run the command.\par
3.\tab Draw the opening profile on the preview panel. Click the mouse middle key to switch tools 4. to draw line, rectangle, arc and circle.\f1\par
\f0 4.\tab Click \ldblquote Ok\rdblquote button, opening will be created on wall or floor. \par
}