mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-06 05:01:35 +00:00
42 lines
3.1 KiB
Plaintext
42 lines
3.1 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033\deftab420{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
|
|
{\info{\horzdoc}{\*\lchars ([\'7b}{\*\fchars !),.:\'3b?D]\'7d}}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\qj\kerning2\b\f0\fs20 Application:\b0 ReferencePlane\line\b Revit Platform:\b0 All\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 Medium\line\b Category:\b0 Basics, Geometry\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create ReferencePlane.\line\b Summary:\b0 \line This sample shows how to create Reference Plane by Revit API.\par
|
|
\par
|
|
\b Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360\qj\tab Autodesk.Revit.DB.Document\par
|
|
\pard\ltrpar\nowidctlpar\fi420\qj Autodesk.Revit.DB.Floor\par
|
|
Autodesk.Revit.DB.Wall\par
|
|
Autodesk.Revit.DB.Options\par
|
|
Autodesk.Revit.DB.Line\par
|
|
Autodesk.Revit.DB.Solid\par
|
|
Autodesk.Revit.DB.Mesh\par
|
|
Autodesk.Revit.Creation.Document\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
\b Project Files:\par
|
|
\b0 Command.cs\par
|
|
\pard\ltrpar\nowidctlpar\li359\qj This file contains a class Command which inherits from IExternalCommand interface and implements the Execute method.\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
ReferencePlaneMgr.cs\par
|
|
\pard\ltrpar\nowidctlpar\li401\qj This file contains a class ReferencePlaneMgr which consists of some methods about Reference Plane, such as create Reference Plane on wall (or floor), get the parameters of Reference Plane and get the coordinate from wall (or floor) used to create Reference Plane.\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
ReferencePlaneForm.cs\par
|
|
\pard\ltrpar\nowidctlpar\li401\qj This file contains a class ReferencePlaneForm inherits from Form class; the form consists of a DataGridView used to display some parameters of all Reference Plane in project.\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
GeomHelper.cs\par
|
|
\pard\ltrpar\nowidctlpar\li401\qj This file contains a class GeomHelper which provides utility methods to get geometry data used to create Reference Plane on wall or floor, such as determine whether a face is vertical, find out the three points which makeup a plane and calculate the length between two points.\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
\b Description:\b0 \par
|
|
This sample provides the following functionalities:\par
|
|
-\tab Report all reference planes in current project, show its ID, bubble end, free end and normal. \par
|
|
-\tab Allow user to create a reference plane:\par
|
|
\pard\ltrpar\nowidctlpar\fi360\qj -\tab If user selected wall in Revit then create Reference Plane at the left face of the wall.\par
|
|
-\tab If user selected floor in Revit then create Reference Plane at the bottom of the floor.\par
|
|
\pard\ltrpar\nowidctlpar\qj\par
|
|
\b Instructions\b0 : \par
|
|
1.\tab Draw some Reference Planes. (or open ReferencePlane.rvt)\par
|
|
2.\tab Draw a Slab or a Wall and Select it.\par
|
|
3.\tab Run this command.\par
|
|
4.\tab User can see ID, bubble end, free end, and normal of all Reference Plane in a table.\par
|
|
5.\tab Click \ldblquote Create\rdblquote button to create a new Reference Plane.\par
|
|
}
|
|
|