mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 10:59:05 +00:00
31 lines
2.7 KiB
Plaintext
31 lines
2.7 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 SpanDirection\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 8.1\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 Parameters, Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Date retrieval for structural Floor (Slab).\line\b Summary:\b0 \line This sample demonstrates how to get span direction and span direction symbols of structural Floor (Slab)\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.Elements.Floor\f1\par
|
|
\f0 Autodesk.Revit.ElementArray\f1\par
|
|
\f0 Autodesk.Revit.ElementArrayIterator\par
|
|
\pard\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\f1 ,\f0 the class implements all functionalities of getting relevant information of Floor\f1 .\par
|
|
\pard\par
|
|
\par
|
|
\b\f0 Description:\b0 \par
|
|
This sample uses Floor class mostly to implement the functionality of getting properties of Floor (Slab): span direction angle and span direction symbols\f1 .\par
|
|
\pard\fi-360\li360\tx360\f0 -\tab Floor objects can be gotten from ActiveDocument.Selection.Elements\f1 .\par
|
|
\pard\fi-360\li360\f0 -\tab Floor.SpanDirectionAngle and Floor.SpanDirectionSymbols properties can be used to retrieve the span direction angle and span direction symbols of Floor (Slab)\f1 .\par
|
|
\f0 -\tab To get span direction symbols, Element.ObjectType.Name \f1\par
|
|
\pard\par
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
|
\pard\fi-360\li360\tx360\cf0\f0 1.\tab Start Revit Structure, draw one slab in Reivt, and then select it\f1 .\par
|
|
\f0 2.\tab Click the external command, a message box will pop up, the span direction angle and span direction symbols of this slab will be shown afterwards\f1 .\f0 \f1\par
|
|
\pard\fi-360\li360\f0 3.\tab If you fail to create a slab with span direction, please use \ldblquote Structural Analysis-Default.rte\rdblquote file as Revit Structure default template file\f1 .\par
|
|
\pard\fi-360\li360\tx360\f0 4.\tab One .rvt file named SpanDirection.rvt is available under sample project folder, span direction and symbol of span direction have been added, you can open this file and select the existing floor to run the sample. \f1\par
|
|
\pard\par
|
|
}
|
|
|