Files
RevitSdkSamples/snapshot/2008/SDK/Samples/BoundaryConditions/CS/ReadMe_BoundaryConditions.rtf
T

108 lines
48 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ Z\þÿÿÿYÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Áq` ñR¿5bjbjqPqP ..::5ÿÿÿÿÿÿ¤ÆÆÆÆÆÆÆÚJJJJ<†ÚöJø®®®®®®®®QE&wJwJwJwJwJwJ$îLhVO€›JÆ®®®®®›JÆÆ®®°Jžžž®ZƮƮQEž®QEžžÞuAlÆÆuD®¢ ÐÝ€ß2#ÇJFáB(QEÆJ0öJ ClÖONFÖOPuDÖOÆuDÜ®®ž®®®®®›J›J”
®®®öJ®®®®ÚDDb„æ dÚbæ ÚÚÚÆÆÆÆÆÆÿÿÿÿ Application: BoundaryConditions
Revit product and version: Revit Structure 2008
Last Modified: 5/12/2006
Modified By: JY Autodesk HSL
Programming Language: C#
Subject: This sample shows to get BoundaryConditions’ parameters or create BoundaryConditons.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Elements.BoundaryConditions
Project Files:
Command.cs
This is the main DLL source file. It contains the class Command which implements interface IExternalCommand.
BoundaryConditionsData.cs
This file contains class BoundaryConditionsData which prepares the needed data (the selected element type and its BC information) and creates BoundaryConditions.
BCProperties.cs
This file contains three enumerations (BCType, BCState and BCTranslationRotation) and two classes (BCTypeAttribute, BCProperties). They prepare data for the PropertyGrid which is contained in BoundaryConditionsForm.
UnitConversion.cs
This file contains a structure ConversionValue and a class ConversionValue. The structure defines the conversion rule between display value and internal value. The class is a value conversion dictionary, which stores some units and their corresponding ConversionValue.
Description:
Only select one structure element.
If the selected element has boundary conditions the parameters of the boundary conditions (BC) are presented. And users are also allowed to set these parameters with other valid values.
List all the Ids of BC whose host is the selected element in a list box.
According to the selected BC Id, the relevant BC Type, State and X, Y, Z translation/rotation will be displayed.
User is not allowed to change the BC Type.
User can set the State of BC to Fixed, Pinned, Roller or User (When different values are selected, the X, Y or Z translation/rotation should do corresponding changes according to the Revit main program UI).
If the User is selected as the current State, then X, Y or Z translation/rotation can be set to Fixed, Released or Spring.
If Spring is selected for X, Y or Z translation/rotation, positive values can be inputted as the Spring Modulus (Show the unit of the value for users).
If the selected element does not have a BC then create one.
Set the BC Type to Point, Line or Area according to the selected element. (Beams/Walls/ Wall Foundations have line BC; Columns/ braces have point BC; Slabs/Foundation Slabs have area BC)
Other initial parameters are set to be fixed.
The user can change all the parameters values except the BC Type (refer to the details of last point)
When the user clicks the OK button the existing BC is updated or the new BC is created.
We should use NewPointBoundaryConditions, NewLineBoundaryConditions and NewAreaBoundaryConditions methods of Autodesk.Revit.Creation.Document to create BC
Instructions:
Open Revit Structure 5 and draw a beam.
Select the beam and run the sample.
Select the property value in the PropertyGrid control in Form.
In sample’s main UI click the OK button.
Return to Revit main program you can see a line BoundaryConditions is created on the selected beam.
Others:
We provide four additional files (Boundary Conditions Pinned.rfa, Boundary Conditions Fixed.rfa, Boundary Conditions Roller.rfa, and Boundary Conditions User.rfa). They are family fi
œ
¬
„ … — ùôùïïôôôùææôááÔÏÊÔÏÏÔôôgdu>âgdXµ 
ÆÐ„h^„hgdçd�gd™#„h`„hgdçd�gdë!gdëg«@&gdë!5þ* T U V d e f q v ‘ ’ “ ” – � Þ ß ù 6
íṶ̀̾ �zizYz�zÌL9$hçd�hu>âOJPJQJ^JnHtHhˆyîhu>âOJQJ^JhÌVvOJPJQJ^JnHtH!hÌVvOJPJQJ^JnHo(tH$hˆyîh™#OJPJQJ^JnHtH$hçd�h™#OJPJQJ^JnHtHhˆyîh™#OJQJ^J!h“_²h™#B*OJQJ^JphÿhˆyîhXµ5�OJQJ^JhˆyîhXµOJQJ^J'hçd�h_>ÊOJPJQJ^JnHo(tH$hçd�h_>ÊOJPJQJ^JnHtH6
7
8
…
‰
›
œ
«
¬
Ã
æ
0 3 < ƒ „ — ç ñ ÷ ø ' / L n o ¤ ¥ íÚÇíǺ­ ÇÚÇ�ÇzÇzg­zÚzÚz�ÚzízZhˆyîh¼%!OJQJ^J$hçd�hXµOJPJQJ^JnHtH$hçd�h¼%!OJPJQJ^JnHtH$hçd�h†DôOJPJQJ^JnHtHhˆyîhXµOJQJ^Jhˆyîh™#OJQJ^Jhˆyîhu>âOJQJ^J$hçd�hu>âOJPJQJ^JnHtH$hçd�h.‹OJPJQJ^JnHtH$hçd�hÂ2ºOJPJQJ^JnHtH— ¤ ¥ ³ Ö �
Ù
JuEÀX”O}ã;רòçâÚÚÒÒÒÒÒÒŽ½½µ­¨gdëg«
& Fgd“_²
& FgdžXü
& F
gdºXæ

& F
Æehgdçd�
& F
gdçd�
& Fgdçd�gdW3„
„�WDÈ`„�gd¼%! 
ÆÐ„h^„hgdçd�¥ ± ² ³ �
§
¬
×
Ø
Ù
â
þ
$7>HO`¸Ø]_qrvw—¥øù :UX”TUsvãñä×Ä·­·¦·œ·œ·­œ­·œ·�·œ·œ·­·­·œ·­·œ·œ·Ä·�·­·hˆyîhºXæOJQJ^Jo(hˆyîhÛT¦OJQJ^Jh†DôOJQJ^J hˆyîhºXæhžXüOJQJ^JhˆyîhºXæOJQJ^J$hçd�hºXæOJPJQJ^JnHtHhˆyîhW3„OJQJ^Jhˆyîhëg«OJQJ^Jhˆyîhëg«5�OJQJ^J+ãñöø:EHIceƒ£Öרåæç
134Tqrš›íÚÇí´Ú´Ú´Ú´Ú´Ú§™ˆ§{n§{nanSn{§hžXühžXüOJQJ^Jo(hˆyîhxHOJQJ^Jhˆyîh8xùOJQJ^JhˆyîhÛT¦OJQJ^J!hˆyîhëg«B*OJQJ^Jphÿhˆyîhëg«5�OJQJ^Jhˆyîhëg«OJQJ^J$h!ch“_²OJPJQJ^JnHtH$h!ch†DôOJPJQJ^JnHtH$h!chžXüOJPJQJ^JnHtH$h!chºXæOJPJQJ^JnHtHØç3r›ÿ¦Ú5ùñééáÙÔÎÆ¾± 
ÆÐ„h^„hgdù52
& Fgdù52
& Fgd"dÂ@&gdžXügdžXü
& FgdÛT¦
& Fgdëg«
& Fgd8xù
& Fgd”a¡@&gdë! ›¡þÿ‡�´µÀØíñ&<¥¦óæÜÏÁ¶£�£}£}£�£}£jWC'hù52hžXüOJPJQJ^JnHo(tH$hù52hO76OJPJQJ^JnHtH$hù52h¤J¢OJPJQJ^JnHtH$hù52hAx,OJPJQJ^JnHtH$hù52h@fOJPJQJ^JnHtH$hù52hžXüOJPJQJ^JnHtHhëg«5�OJQJ^JhžXühžXü5�OJQJ^JhˆyîhžXüOJQJ^Jhëg«OJQJ^JhˆyîhÛT¦OJQJ^JhˆyîhcBÕOJQJ^J¦ÙÚ45íÝíÊ$hù52h"dÂOJPJQJ^JnHtHhù52OJPJQJ^JnHtH$hù52hZI(OJPJQJ^JnHtH,1�h°Ð/ °à=!°"°#� $� %°°Ð°Ð �Ð
& F¤<@&5�CJ KH OJQJ\�^JaJ `@` Ím| Heading 2$
& F¤<@& 5�6�CJOJQJ\�]�^JaJR@R Ím| Heading 3 $¤<@&5�CJOJQJ\�^JaJDAòÿ¡D Default Paragraph FontRióÿ³R  Table Normalö4Ö
l4Öaö (k@ôÿÁ(No List,þÄñ,¸2Bullet3 FPþOP
XìHeader Requirements5�6�OJQJDZ@D ëg«
Plain TextCJOJQJ^JaJFY@"F ë! Document Map-D MÆ
ÿ€5
.ÿÿÿÿU7 É00?è̇0‰
è
00U7 É00?ḣ0‰
h