Files
RevitSdkSamples/snapshot/2008/SDK/Samples/ProjectUnit/CS/ReadMe_ProjectUnit.rtf
T

65 lines
37 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ EGþÿÿÿDÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á` ðR¿^bjbjæ‡æ‡ .$„í„í^ÿÿÿÿÿÿ¤ÆÆÆÆÆÆÆÚêêêê4Ú ;8>>>>>>>>;!;!;!;!;!;!;$Ø=h@@DE;Æ>>>>>E;ÆÆ>>Z;ööö>^Æ>Æ>;ö>;öö¦7DÆÆ?:>2 PߺœgÇêœ
G8$;p;0 ;k8Ô„A¦F„AH?:„AÆ?:à>>ö>>>>>E;E;ì
>>> ;>>>>Ú$þ$"ä äÚþ" ÚÚÚÆÆÆÆÆÆÿÿÿÿ Application: ProjectUnit
Revit product and version: ALL
Last Modified: 12/12/2006
Modified By: CL Autodesk HSL
Programming Language: C#
Subject: Add a command which lists all the units in the current project and displays their format information; Display the decimal symbol type of current projects units. Users could set it to comma or dot; Display the slope type of current project units, users can set it to Rise or Angle.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Elements.ProjectUnit
Autodesk.Revit.FormatOptions
Project Files:
Command.cs
The main DLL source file which contains the class Command which implements interface IExternalCommand. Get necessary data from revit and show the Form.
ProjectUnitData.cs
This file contains a class which prepares the project unit data.
ProjectUnitForm.cs
This file contains a form class which retrieves or changes the project unit setting by API. include the decimal symbol type, the slope type setting and some other format information.
Description:
This sample should provide the following functionality:
- Display the decimal symbol type of current project units and users can set it to comma or dot.
- Display the slope type of current project units and users can set it to Rise or Angle.
- List all the units in current project and display each units format information.
- List all the available Unit Discipline of current project in a list box
- Classify the project units by the Unit Discipline
- When users select one Unit Discipline in the list box to display the corresponding project units name (such as Length or Area) and its format information. The format information includes the display unit type (such as DUT_KIP_FEET_PER_DEGREE_PER_FOOT), the unit suffix type (such as UST_NONE), and the rounding (such as 0.2).
Instructions:
Open Revit.
Invoke this command.
The project unit form lists all the units in current project and displays each units format information.
Users can select the decimal symbol type and slope type of current project units
Click the OK button in samples main UI.
Application will reset the decimal symbol type and slope type.
 
3478FGIQR^_apˆñä×äñäï¡”ƒpW¡”C”¡”'hÃh÷LaOJPJQJ^JnHo(tH0h\\Á!B*OJPJQJ^JnHo(phÿtH$hd&©h\\ÁOJPJQJ^JnHtH!h,MîOJPJQJ^JnHo(tHhÃ!OJQJ^JhÃ!5OJQJ^J'hÃhëg«OJPJQJ^JnHo(tH'hÃhuoKOJPJQJ^JnHo(tHhÃhØcíOJQJ^JhÃhëg«OJQJ^JhÃhëg«5OJQJ^J8RpŠ­ ® ¸ Ù ý 

+
6
Ï
Ð
ã
$ % 8 ùôùïïôêßùÔÔÔôÏÏÔÆÁÔÁÁgdÁ¤„Ð`„Ðgd Ugd™#
„hVD^„hgdS|J
WD`„ gdªTgdªTgdë!gdëg«@&gdë!^þˆŠ¡§¨«¬°´¾ÂÝÞßä÷øú+ , - 3 6 < @ W Z ˆ Š « ¬ ëÞÐÞðŸ‹xxŸxgxŸxgxŸgxWgWŸxŸxgxWxh_aOJPJQJ^JnHtH!h_aOJPJQJ^JnHo(tH$hÃh_aOJPJQJ^JnHtH'hÃh_aOJPJQJ^JnHo(tH!hÐeËOJPJQJ^JnHo(tH$hh_aOJPJQJ^JnHtHhÃh_aOJQJ^JhÃhëg«5OJQJ^JhÃhëg«OJQJ^J'hÃ!OJPJQJ^JnHo(tH­ ® · ¸ Ø Ù ü ý 


)
*
ë×ɼ¨¼•gT@2%hÃhOJQJ^JhÃh5OJQJ^J'hÃhOJPJQJ^JnHo(tH$hÃhuoKOJPJQJ^JnHtH.hÃhuoKOJPJQJ^JmHnHo(tHu+hÃhuoKOJPJQJ^JmHnHtHu$hhëg«OJPJQJ^JnHtH'hÃhG\LOJPJQJ^JnHo(tHhÃhëg«OJQJ^JhÃhëg«5OJQJ^J'hÃhs6IOJPJQJ^JnHo(tH'hÃhªTOJPJQJ^JnHo(tH*
+
5
6
7
N
U
œ
º