Files
RevitSdkSamples/SDK/Samples/RotateFramingObjects/VB.NET/ReadMe_RotateFramingObjects.rtf
T
2019-09-11 14:43:53 +02:00

31 lines
2.8 KiB
Plaintext

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue255;}
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\b\f0\fs20 Application:\b0 RotateFramingObjects\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\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\li360\f0 Autodesk.Revit.DB.Element \f1\par
\f0 Autodesk.Revit.DB.Parameter\f1\par
\f0 Autodesk.Revit.DB.FamilyInstance\f1\par
\f0 Autodesk.Revit.Structural.Enums.StructuralType\f1\par
\f0 Autodesk.Revit.Creation.Application\f1\par
\par
\pard\b\f0 Project Files:\b0 \par
RotateFramingObjects.vb\f1\par
\pard\li360\f0 This file contains the class RotateFramingObjects that inherits from IExternalCommand. Its function is to rotate the selected instances\f1 .\par
\par
\pard\f0 RotateFramingObjectsForm.vb\f1\par
\pard\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\b\f0 Description:\b0 \f1\par
\pard\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\fi-360\li360 -\tab To create a new line, use Autodesk.Revit.Creation.Application.NewLineUnbound(XYZ point, XYZ direction)\f1\par
\pard\par
\b\f0 Instructions:\cf1\b0 \f1\par
\pard\fi-360\li360\tx360\cf0\f0 1.\tab Prepare your Revit project. Make sure there are some structural beams, braces or columns in current document. A sample project file RotateFramingObjects.rvt is available in the sample\rquote s folder.\par
\pard\fi-360\li360 2.\tab Select one or some structural beams, braces or columns.\par
3.\tab Select radio buttons to decide we take either \ldblquote relative\rdblquote or \ldblquote absolute\rdblquote rotation.\f1\par
\f0 4.\tab Input the value of angle that instances are rotated by/to.\par
5.\tab Click OK button to rotate the instances.\f1\par
}