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

45 lines
3.9 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fnil\fprq1\fcharset134 Fixedsys;}}
{\colortbl ;\red0\green0\blue255;\red0\green128\blue0;}
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 FoundationSlab\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 9.1\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 CL Autodesk\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 Create Foundation Slab.\line\b Summary:\b0 \line This sample demonstrates how to create Foundation Slab.\f1\par
\par
\b\f0 Classes:\b0 \par
\pard\ltrpar\fi360 Autodesk.Revit.IExternalCommand \par
Autodesk.Revit.Elements.Floor\par
Autodesk.Revit.Symbols.FloorType\par
Autodesk.Revit.Creation.Document \par
\pard\ltrpar\f1\par
\b\f0 Project Files:\b0 \cf1\f1\par
\cf0\f0 Command.cs\par
\pard\ltrpar\li360 This file contains the class Command which implements interface IExternalCommand. It creates an instance of SlabData for FoundationSlabForm and show the form.\f1\par
\pard\ltrpar\par
\f0 RegularSlab.cs\f1\par
\pard\ltrpar\li401\f0 This file contains \lang1024 a class of regular slab.\cf2\f2 \cf0\f0 Create an octagonal profile for the floor according to its bounding box\lang1033\par
\pard\ltrpar\par
FoundationSlabForm.cs\f1\par
\pard\ltrpar\fi400\f0 This file contains \lang1024 a class to show properties and profiles of the foundation slabs.\lang1033\f1\par
\pard\ltrpar\f0\par
SlabData.cs\f1\par
\pard\ltrpar\li358\lang1024\f0 This file \lang1033 contains a class SlabData that is a mediator between RevitAPI and FoundationSlabForm\lang1024 . It has a collection of functions to create FoundationSlabs, find out all regular horizontal slabs, get the floor profile, verify whether the floor is planar etc.\lang1033\f1\par
\pard\ltrpar\f0\par
Sketch.cs\par
\pard\ltrpar\fi400 This file contains \lang1024 an internal class for drawing slabs' profiles\lang1033 .\f1\par
\f0\par
\pard\ltrpar\b Description:\b0 \f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab To get slabs, iterate through the document looking for \lquote Floor\rquote objects.\par
\pard\ltrpar\fi-360\li360 -\tab The Mark property can be found in floor parameter: BuiltInParameter.ALL_MODEL_MARK.\par
-\tab Foundation slab types can be found by iterating through the document looking for \lquote FloorType\rquote objects with category named \lquote Structural Foundations\rquote .\par
-\tab A Foundation Slab can be created by \lquote NewFloor\rquote method with the given horizontal profile and using a specified foundation slab style. \par
-\tab Structural slab's profile can be found in its AnalyticalModel property. Nonstructural floor's profile can be formed through its Geometry property.\par
-\tab The octagonal profile is an array of planar lines that represent the horizontal profile of the octagonal foundation slab.\par
-\tab Make sure the profile of slab is a closed outline, or else it could not be created by Revit.\par
\pard\ltrpar\par
\b Instructions:\cf1\b0 \cf0\par
\pard\ltrpar\fi-360\li360\tx360 1.\tab Prepare your Revit project.\par
\pard\ltrpar\li360 Open or new a Revit project and make sure there are some floors in the document. A sample project file FoundationSlab.rvt is available in the sample\rquote s folder\f1 .\f0\par
\pard\ltrpar\fi-360\li360\tx360 2.\tab Run the command.\par
\pard\ltrpar\fi-360\li360 3.\tab In the Regular Slabs group, select the floors you want to make change.\par
4.\tab In the bottom of the dialog, select the Foundation Slab Type to be applied\f1 .\f0\par
\pard\ltrpar\fi-360\li360\tx360 5.\tab You can see the preview of the converting results in the Picture Box. Click OK button to create octagonal slabs for the selected floors\f1 .\f0\par
\pard\ltrpar\par
}