mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-18 03:19:17 +00:00
31 lines
2.8 KiB
Plaintext
31 lines
2.8 KiB
Plaintext
|
|
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
||
|
|
{\colortbl ;\red0\green0\blue255;}
|
||
|
|
\viewkind4\uc1\pard\b\f0\fs20 Application:\b0 StructuralLayerFunction\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 9.0\line\b Last Modified:\b0 3/5/2008\cf1\f1\par
|
||
|
|
\cf0\b\f0 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 Function retrieval for structural layers.\line\b Summary:\b0 \line This sample demonstrates how to retrieve the function of each structural layer of selected floor in order from outside to inside in a dialog box\f1 .\par
|
||
|
|
\f0\par
|
||
|
|
\b Classes:\b0 \f1\par
|
||
|
|
\pard\fi360\f0 Autodesk.Revit.IExternalCommand\f1\par
|
||
|
|
\f0 Autodesk.Revit.ElementSet\f1\par
|
||
|
|
\f0 Autodesk.Revit.Structural.CompoundStructureLayer\f1\par
|
||
|
|
\f0 Autodesk.Revit.Structural.Enum.CompoundStructureLayerFunction\f1\par
|
||
|
|
\pard\f0\par
|
||
|
|
\b Project Files:\b0 \par
|
||
|
|
Command.cs\f1\par
|
||
|
|
\pard\li360\tx720\f0 This file contains the class Command which inherits from IExternalCommand interface and implements the Execute method; besides, the class implements the functionalities: get all functions from all structure layers of selected floor\f1 .\par
|
||
|
|
\pard\par
|
||
|
|
\f0 StructuralLayerFunctionForm.cs\f1\par
|
||
|
|
\pard\li360\tx720\f0 This file contains a form class which will list all the functions for all floor\rquote s structure layers.\f1\par
|
||
|
|
\pard\par
|
||
|
|
\b\f0 Description:\b0 \par
|
||
|
|
This sample uses Autodesk.Revit.Structural.CompoundStructureLayer and Autodesk.Revit.Structural.Enum.CompoundStructureLayerFunction mostly to get all the layer functions of Floor\f1 .\par
|
||
|
|
\pard\fi-360\li360\tx360\f0 -\tab To get all the Structure layers of floor, use Floor.FloorType.CompoundStructure.Layers property.\f1\par
|
||
|
|
\pard\fi-360\li360\f0 -\tab To get the function of one layer, use Function property of CompoundStructureLayer class.\f1\par
|
||
|
|
\f0 -\tab The layers of the floor are ordered from outside to inside in the structural layers object\f1 .\par
|
||
|
|
\pard\par
|
||
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
||
|
|
\pard\fi-360\li360\tx360\cf0\f0 1.\tab Draw one floor in Revit, then edit the floor\rquote s Structure parameter, afterward, insert some layers and select different functions for each layers.\f1\par
|
||
|
|
\f0 2.\tab Select the floor then run the command, a dialog will pop up, all available functions of the selected floor\rquote s structure layers will be listed in the ListBox control.\f1\par
|
||
|
|
\pard\fi-360\li360\f0 3.\tab Under sample project folder of SlabProperties, there is one Revit model file named SlabProperties.rvt, this file contains several structural layers, you can open this file and select the existing floor to run this sample.\f1\par
|
||
|
|
\pard\par
|
||
|
|
}
|
||
|
|
|