mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 22:51:32 +00:00
38 lines
3.5 KiB
Plaintext
38 lines
3.5 KiB
Plaintext
{\rtf1\fbidis\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\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 CreateBeamSystem\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.1\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 High\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create beamsystem.\line\b Summary:\b0 \line This sample demonstrates how to generate a beam system with the horizontal linear beams selection\rquote s profile.\f1\par
|
|
\f0\par
|
|
\b Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand\par
|
|
Autodesk.Revit.DB.BeamSystem\par
|
|
Autodesk.Revit.DB.BeamSystem.LayoutRule\par
|
|
Autodesk.Revit.DB.FamilySymbol\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Project Files:\b0 \par
|
|
Command.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This is the main DLL source file. It contains the class Command which implements interface IExternalCommand.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi400\f0\par
|
|
\pard\ltrpar\nowidctlpar BeamSystemBuilder.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file contains a class BeamSystemBuilder which is used to create new instance of beam system.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\fs24\par
|
|
\fs20 BeamSystemData.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file contains a class BeamSystemData which is a mixed data class (save the data showed in UI and the data used to create beam system).\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Description:\b0 \cf1\par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357\tx357\cf0 -\tab User selects some linear beams which make a horizontal profile first, and create a beam system with this profile. Allow user change the layout method and beam type of the created beam system.\par
|
|
-\tab The command displays a dialog with a preview window on the left and generic properties grid on the right. \par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357 -\tab The generic property grid allows user to change the Layout method (clear spacing, fixed distance, fixed number and maximum spacing) and Beam type.\par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357\tx357 -\tab The preview window displays the profile of the beam system and its direction. \par
|
|
-\tab Beam system\rquote s direction is decided by the first line in the CurveArray that is taken as the parameter of profile in NewBeamSystem method.\par
|
|
-\tab Beam system\rquote s layout method and beam type can be retrieved and modified through BeamType and LayoutRule properties of BeamSystem.\par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357 -\tab Use Autodesk.Revit.Creation.Document.NewBeamSystem(CurveArray) method to create BeamSystem.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Draw some horizontal linear beams with a closed profile.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Select these beams and run this command.\par
|
|
3.\tab On the sample UI if you want change the beam system direction displayed in the picture box, please click the \ldblquote Change Direction\rdblquote button.\par
|
|
4.\tab User can select Layout method and Beam type which listed in the right property grid in the sample UI.\par
|
|
5.\tab Expected result: return to Revit after run this sample a beam system will present in the Revit main program view.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
}
|
|
|