mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 10:59:05 +00:00
30 lines
2.8 KiB
Plaintext
30 lines
2.8 KiB
Plaintext
|
|
{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
||
|
|
{\colortbl ;\red0\green0\blue255;}
|
||
|
|
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 RotateFramingObjects\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 AL Autodesk\line\b Programming Language:\b0 VB.NET\line\b Skill Level:\b0 Medium\line\b Category:\b0 Basics, Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Rotate framing objects.\line\b Summary:\b0 \line Demonstrates how to rotate beams, braces or structural columns around their directional axis rather than project axis\f1 .\par
|
||
|
|
\f0\par
|
||
|
|
\b Classes:\b0 \f1\par
|
||
|
|
\pard\ltrpar\li360\f0 Autodesk.Revit.Element \f1\par
|
||
|
|
\f0 Autodesk.Revit.Parameter\f1\par
|
||
|
|
\f0 Autodesk.Revit.Elements.FamilyInstance\f1\par
|
||
|
|
\f0 Autodesk.Revit.Structural.Enums.StructuralType\f1\par
|
||
|
|
\f0 Autodesk.Revit.Creation.Application\f1\par
|
||
|
|
\par
|
||
|
|
\pard\ltrpar\b\f0 Project Files:\b0 \par
|
||
|
|
RotateFramingObjects.vb\f1\par
|
||
|
|
\pard\ltrpar\li360\f0 This file contains the class RotateFramingObjects that inherits from IExternalCommand. Its function is to rotate the selected instances\f1 .\par
|
||
|
|
\par
|
||
|
|
\pard\ltrpar\f0 RotateFramingObjectsForm.vb\f1\par
|
||
|
|
\pard\ltrpar\li360\f0 This file contains the Form class that can get the angle that the instances will be rotated by or to determined by checking \ldblquote Relative\rdblquote or \ldblquote Absolute\rdblquote . And if only one instance is selected, the angle input text box will show its current angle, otherwise be blank.\f1\par
|
||
|
|
\par
|
||
|
|
\pard\ltrpar\b\f0 Description:\b0 \f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab To rotate an instance of beam or brace, use Parameter.Set(double angle), the parameter should be in the collection of parameters of the beam or brace and its definition name is \ldblquote Angle\rdblquote .\f1\par
|
||
|
|
\f0 -\tab To rotate an instance of column, use FamilyInstance.Location.Rotate(Line axis, double angle). the axis of column can be determined by its location and a vertical vector.\par
|
||
|
|
\pard\ltrpar\fi-360\li360 -\tab To create a new line, use Autodesk.Revit.Creation.Application.NewLineUnbound(ByRef XYZ point, ByRef XYZ direction)\f1\par
|
||
|
|
\pard\ltrpar\par
|
||
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
||
|
|
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Select some elements which should be beam, brace or column.\par
|
||
|
|
\pard\ltrpar\fi-360\li360 2.\tab Select radio buttons to decide we take either \ldblquote relative\rdblquote or \ldblquote absolute\rdblquote rotation.\f1\par
|
||
|
|
\f0 3.\tab Input the value of angle that instances are rotated by/to\f1 .\par
|
||
|
|
\f0 4.\tab Click OK button to rotate the instances.\f1\par
|
||
|
|
}
|
||
|
|
|