Files
RevitSdkSamples/snapshot/2008/SDK/Samples/CreateBeamsColumnsBraces/VB.NET/ReadMe_CreateBeamsColumnsBraces.rtf
T

80 lines
40 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ KMþÿÿÿJÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Áq` ñR¿›bjbjqPqP ."::› ÿÿÿÿÿÿ¤ÆÆÆÆÆÆÆÚ"""",NÚ:ønnnnnnnna4&‡9‡9‡9‡9‡9‡9$þ;hf>€«9Ænnnnn«9ÆÆnnÀ9nnnnjÆnÆna4nna4nnnM1ÆÆ¥3nb à:E´¡gÇ"Ø
i2 a4Ö90:‰2æ>âvæ>@¥3æ>Æ¥3¼nnnnnnnn«9«9Xnnn:nnnnÚÚÚ$þ
$ÚÚÚþ
ÚÚÚÆÆÆÆÆÆÿÿÿÿ Application: CreateBeamsColumnsBraces
Revit product and version: All
Last Modified: 11/12/2006
Modified By: JY Autodesk HSL
Programming Language: VB.NET
Subject: This sample demonstrates how to create a truss model which composes of columns, beams and braces automatically according to the user’s input.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Symbols.FamilySymbol
Project Files:
CreateBeamsColumnsBraces.vb
This is the main DLL source file. It contains the class Command which implements the interface IExternalCommand. Command class also collects all the symbols of levels, columns, beams & braces in current document and takes charge of creating a truss model.
CreateBeamsColumnsBracesForm.vb
This file contains the CreateBeamsColumnsBracesForm class which is the sample’s UI to collect user’s input.
Description:
Presents a dialog to ask the user for the following information, and create truss model according to these information.
Distance between columns
Number of Columns in the X direction
Number of Columns in the Y direction
The type of the columns
The type of the beams
The type of the braces
Number of Floors
The code should verify whether the number of floors is less than the number of levels since columns will be inserted from the level below to the level above. If there are not enough levels, notify the user the number of levels that must be added and exit the command with a failure message.
Levels can be retrieved by iterating through the document elements.
The types that can be used for the beams, columns and braces can be located by searching the database for FamilySymbol objects that have material type of something other than undefined.
All inserted beams, columns and braces must be specified as structural during creation.
To insert a beam use the NewFamilyInstance method that takes a location and a reference direction. Location point should be the start of the beam and the reference direction should be a vector along the direction of the beam. Specify the structural type as beam.
To insert a brace do the same as for a beam but specify brace as the structural type.
Instructions:
No context to execute this sample, please directly run this command.
User can input or select valid values in the sample UI (certainly, we can use the default values).
Then click OK button.
Expected result: return to Revit main program after run this sample, a Columns Beams and Braces truss model will present.
 &@ADEST^_k|‘’š¢£ÃÉÌ×ØÞ   ' ) 0 1 2 : < ñäñäÚäñäǶñäñ¶äñä©ä˜‹z˜‹pzäfä¶Yñähæh#sOJQJ^Jh#sOJQJ^Jh;AñOJQJ^J!h;AñOJPJQJ^JnHo(tHhEYhEYOJQJ^J!hEYOJPJQJ^JnHo(tHhç:·hç:·OJQJ^J!h"üh#sB*OJQJ^Jphÿ$h"üh#sOJPJQJ^JnHtHhpLµOJQJ^Jh"üh#sOJQJ^Jh"üh#s5�OJQJ^J!&E_|™š1 2 < ] � ‚ ’ ® ®
¯
Ï
; < J Â Û ùôùôôôôôùëëëôôÞÙÙÞÎôƾ
& F
gdò_þ
& F gdò_þ
„�WDÈ`„�gd#sgdpLµ 
ÆÐ„h^„hgdò_þ„h`„hgdò_þgd#s@&gd#s›þ< € � ‚ � ‘ ’ « ­ ® ³ Ó Ú ÿ 
2
9
:
;
Š
‹
Ÿ
¡
­
íÝʼ¯ž¯”¯í�í�Ý�n]n�Ý�L�!hEYOJPJQJ^JnHo(tH!h;AñOJPJQJ^JnHo(tH$h;Añh;AñOJPJQJ^JnHtH$h"üh#sOJPJQJ^JnHtHhpLµOJQJ^J!h"üh#sB*OJQJ^Jphÿh"üh#sOJQJ^Jh"üh#s5�OJQJ^J$hò_þhò_þOJPJQJ^JnHtHh#sOJPJQJ^JnHtH$hò_þh#sOJPJQJ^JnHtH­
®
¯
Ï
æ
% - ; < H J Q R _ k ‰ Á  { ’ íàÓð�°í�‚q_q_qQ@‚q hò_þh#sCJOJQJ^JaJh#sCJOJQJ^JaJ#hò_þhEYCJOJQJ^JaJo( h"üh#sCJOJQJ^JaJh"üh#sOJQJ^Jh"üh#s5�OJQJ^J$h;Añh;AñOJPJQJ^JnHtH$hò_þhpLµOJPJQJ^JnHtHhpLµOJPJQJ^JnHtHhpLµhpLµOJQJ^Jh;AñhpLµOJQJ^J$hpLµhpLµOJPJQJ^JnHtHÛ % = S j { ž
ã
�õüRSb§
 š›÷÷÷÷÷÷ïïïïïïÚÔÌÌÌÌÇgdëg«
& Fgd=v¸@&gd#s
& FH
Æh¤„¤„\þ^„¤`„\þgd#s
& F gd#s
& F
gdò_þ’ ™ 7
8
9
?