Files
2021-04-20 11:36:21 +02:00

35 lines
3.0 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab420{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue255;}
{\info{\horzdoc}{\*\lchars ([\'7b}{\*\fchars !),.:\'3b?D]\'7d}}
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 GenerateFloor\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Medium\line\b Category:\b0 Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Generate a floor using the closed outline made by a selection of walls.\line\b Summary:\b0 \line This sample demonstrates how to generate a floor using the closed outline made by a selection of walls.\f1\par
\f0\par
\b Classes:\b0 \f1\par
\pard\ltrpar\nowidctlpar\fi360\f0 Autodesk.Revit.Creation.Document\f1\par
\f0 Autodesk.Revit.DB.Floor\f1\par
\f0 Autodesk.Revit.DB.FloorType\par
Autodesk.Revit.DB.Level\par
\pard\ltrpar\nowidctlpar\par
\b Project Files:\b0\i \cf1\i0\f1\par
\cf0\f0 Command.cs\f1\par
\pard\ltrpar\nowidctlpar\li420\f0 This is the main DLL source file. It contains the class Command which implements interface IExternalCommand.\f1\par
\pard\ltrpar\nowidctlpar\fi420\par
\pard\ltrpar\nowidctlpar\f0 Data.cs\par
\pard\ltrpar\nowidctlpar\li420 This is the most important class of the sample project. Obtain all data for this sample: all possible types for floor, the level that walls based on.\f1\par
\pard\ltrpar\nowidctlpar\par
\f0 GenerateFloorForm.cs\par
\f1\tab\f0 A dialog that contains the following:\f1\par
\pard\ltrpar\nowidctlpar\fi-420\li840\tx840\f0 -\tab A drop-down list box contains all the floor types.\par
\pard\ltrpar\nowidctlpar\fi-420\li840 -\tab A check box shows whether the floor to be created is structural or not.\par
-\tab A preview window should display the closed outline.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
\b Description:\b0\i\f1\par
\pard\ltrpar\nowidctlpar\fi-420\li840\tx840\i0\f0 -\tab The profile of floor can be retrieved from the location of walls. If this curve array is not in sequence, creating floor with this profile will encounter an exception. The solution is to arrange the curves in sequence first.\f1\par
\pard\ltrpar\nowidctlpar\fi-420\li840\f0 -\tab Before RevitAPI 10, the method \lquote NewFloor\rquote is the only interface to create the object floor, slab, and foundation slab etc\'85 From the RevitAPI 10, it is divided into three methods, \ldblquote NewFloor\rdblquote , \ldblquote NewSlab\rdblquote and \ldblquote NewFoundationSlab\rdblquote .\f1\par
\pard\ltrpar\nowidctlpar\f0\par
\b Instructions:\cf1\b0 \cf0\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Select several walls that make a closed outline.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Run this external command, a dialog will show you the profile of floor you want to create.\par
3.\tab Select the floor type you want to create.\par
4.\tab Click the OK button, the floor will be created.\par
}