Buckets:
| Application: CreateViewSection | |
| Revit Platform: Structure | |
| Revit Version: 2011.0 | |
| First Released For: 9.0 | |
| Programming Language: C# | |
| Skill Level: Medium | |
| Category: Views | |
| Type: ExternalCommand | |
| Subject: Create section views. | |
| Summary: | |
| This sample shows how to generate a section view across the mid point of a linear element, such as a wall, floor or beam | |
| Classes: | |
| Autodesk.Revit.UI.IExternalCommand | |
| Autodesk.Revit.DB.Document | |
| Autodesk.Revit.DB.BoundingBoxXYZ | |
| Autodesk.Revit.DB.Element | |
| Autodesk.Revit.DB.ElementSet | |
| Autodesk.Revit.DB.Wall | |
| Autodesk.Revit.DB.LocationCurve | |
| Autodesk.Revit.DB.Line | |
| Autodesk.Revit.DB.FamilyInstance | |
| Autodesk.Revit.DB.Transform | |
| Autodesk.Revit.DB.Structural.AnalyticalModel | |
| Autodesk.Revit.DB.Structural.AnalyticalModelFrame | |
| Autodesk.Revit.DB.Curve | |
| Autodesk.Revit.DB.Floor | |
| Autodesk.Revit.DB.Structural.AnalyticalModelFloor | |
| Project Files: | |
| Command.vb | |
| 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. | |
| XYZMath.cs | |
| It gives operations about point and vector presented by XYZ structure. | |
| Description: | |
| This sample provides following functionalities. | |
| - | |
| Retrieve the selected linear element. | |
| - | |
| Generate a BoundingBoxXYZ instance which will be used in NewViewSection() method | |
| - | |
| set its Max and Min property | |
| - | |
| 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 | |
| - | |
| Create the section view using the BoundingBoxXYZ. | |
| Instructions: | |
| 1. | |
| Open Revit Structure. | |
| 2. | |
| Draw a linear element (wall, structural floor or structural beam). | |
| 3. | |
| Select the element and execute the external command Command. | |
| Or | |
| 1. | |
| Open Revit Structure. | |
| 2. | |
| Execute the external command CreateDraftingView. |
Xet Storage Details
- Size:
- 1.98 kB
- Xet hash:
- 03355f49f1a7beeb82a2dcb09d40a685014c5dc71ae7f629bdf77ebb8833c278
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.