mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 19:09:03 +00:00
46 lines
3.1 KiB
Plaintext
46 lines
3.1 KiB
Plaintext
|
|
{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fswiss\fprq2\fcharset0 Verdana;}}
|
||
|
|
{\colortbl ;\red0\green0\blue255;}
|
||
|
|
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 CreateViewSection\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 9.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 LL Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Medium\line\b Category:\b0 Views\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create section views.\line\b Summary:\b0 \line This sample shows how to generate a section view across the mid point of a linear element, such as a wall, floor or beam\i\f1\par
|
||
|
|
\i0\par
|
||
|
|
\b\f0 Classes:\b0 \par
|
||
|
|
\pard\ltrpar\fi180\li180\lang1036 Autodesk.Revit.IExternalCommand\f1\par
|
||
|
|
\f0 Autodesk.Revit.Document\par
|
||
|
|
Autodesk.Revit.Geometry.BoundingBoxXYZ\par
|
||
|
|
Autodesk.Revit.Element\par
|
||
|
|
Autodesk.Revit.ElementSet\par
|
||
|
|
Autodesk.Revit.Elements.Wall\par
|
||
|
|
Autodesk.Revit.LocationCurve\par
|
||
|
|
Autodesk.Revit.Geometry.Line\par
|
||
|
|
Autodesk.Revit.Elements.FamilyInstance\par
|
||
|
|
Autodesk.Revit.Geometry.Transform\par
|
||
|
|
Autodesk.Revit.Structural.AnalyticalModel\par
|
||
|
|
Autodesk.Revit.Structural.AnalyticalModelFrame\par
|
||
|
|
Autodesk.Revit.Geometry.Curve\par
|
||
|
|
Autodesk.Revit.Elements.Floor\par
|
||
|
|
Autodesk.Revit.Structural.AnalyticalModelFloor\par
|
||
|
|
\pard\ltrpar\lang1033\par
|
||
|
|
\b Project Files:\b0 \i\par
|
||
|
|
\i0 Command.vb\par
|
||
|
|
\pard\ltrpar\li360\lang1036 It contains the class Command which implements interface IExternalCommand and the generating process of the section view across the mid point of a linear element. It also contains a class CreateDraftingView to create a drafting view.\f1\par
|
||
|
|
\pard\ltrpar\lang1033\par
|
||
|
|
\f0 XYZMath.cs\f1\par
|
||
|
|
\pard\ltrpar\li360\f0 It gives operations about point and vector presented by XYZ structure.\f1\par
|
||
|
|
\pard\ltrpar\b\par
|
||
|
|
\f0 Description:\b0 \f1\par
|
||
|
|
\f0 This sample provides following functionalities.\f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab Retrieve the selected linear element.\f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\f0 -\tab Generate a BoundingBoxXYZ instance which will be used in NewViewSection() method\f1\par
|
||
|
|
\pard\ltrpar\fi-420\li840\tx840\f2 -\tab\f0 set its Max and Min property\f1\par
|
||
|
|
\f2 -\tab\f0 Generate a Transform instance as the Transform property of BoundingBoxXYZ which defines the Origin and the directions (including RightDirection, UpDirection and ViewDirection) of the created view\f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab Create the section view using the BoundingBoxXYZ.\f1\par
|
||
|
|
\pard\ltrpar\par
|
||
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Open Revit Structure 2009.\par
|
||
|
|
\pard\ltrpar\fi-360\li360 2.\tab Draw a linear element (wall, structural floor or structural beam).\par
|
||
|
|
3.\tab Select the element and execute the external command Command.\f1\par
|
||
|
|
\pard\ltrpar\f0 Or\par
|
||
|
|
\pard\ltrpar\fi-420\li420\tx420 1.\tab Open Revit 2009.\par
|
||
|
|
\pard\ltrpar\fi-420\li420 2.\tab Execute the external command \lang1036 CreateDraftingView.\lang1033\par
|
||
|
|
\pard\ltrpar\f1\par
|
||
|
|
}
|
||
|
|
|