Files
RevitSdkSamples/snapshot/2008/SDK/Samples/LevelsProperty/CS/ReadMe_LevelsProperty.rtf
T

61 lines
30 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ 79þÿÿÿ6ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á#` ðR¿*bjbj\.\. .&>D>D*ÿÿÿÿÿÿ¤~~~~~~~z z z z D¾ ¬øÞ Þ Þ Þ Þ Þ Þ Þ +------$¤h !Q~Þ Þ Þ Þ Þ Q~~Þ Þ fÀ
À
À
Þ ~Þ ~Þ +À
Þ +À
À
Ž;|~~gÞ Ò 0?ÉJ#Çz `
·+|0¬Ç $"j
L$" g$"~gÄÞ Þ À
Þ Þ Þ Þ Þ QQ
Þ Þ Þ ¬Þ Þ Þ Þ ä~~~~~~ÿÿÿÿ Application: LevelsProperty
Revit product and version: All
Last Modified: 11/12/2006
Modified By: JL Autodesk HSL
Programming Language: C#
Subject: This sample demonstrates how to get all the levels in a document, and how to create or delete a level and set its properties.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Elements.Level
Autodesk.Revit.Creation.Document
Project Files:
Command.cs
This file contains the functions that how to get all the levels in a Revit file, how to create a level and set its properties and implement the IExternalCommand interface.
LevelsDataSource.cs
This file contains the LevelsDataSource Class which used to store the data of a level in Revit.
Description:
Display a list of all Levels in the current document, with their name and elevation. All the levels can be found by iterating through the current document elements.
Create a new level with a unique name and an elevation. A new level can be created by using the NewLevel method which belongs to the Autodesk.Revit.Creation.Document Class.
Delete a level.
A levels name and elevation can be set by the Name and Elevation property in the Autodesk.Revit.Element.Level Class. The name of a Level should be unique.
Instructions:
Open a Revit document which contains some levels.
Run the sample, it will get all levels in current document.
Click the Add button to create a new level.
Selected a level in the list to set its name and elevation, click Ok button to finish set.
Click the Delete button to delete a selected level in the list, click Ok button to finish it.
 
67:;IJLNOPTUabcdeqñäÓ¿ñä¯äñäÓžÓž‹rñä^Jž^'h{/Vhéo+OJPJQJ^JnHo(tH'h{/Vhã;õOJPJQJ^JnHo(tH0hÿ/,hëg«B*OJPJQJ^JnHo(phÿtH$h{/Vhÿ/,OJPJQJ^JnHtH!h{/VOJPJQJ^JnHo(tHhæE/OJPJQJ^JnHtH'hÿ/,hëg«OJPJQJ^JnHo(tH!hÄ/˜OJPJQJ^JnHo(tHhW3„hëg«OJQJ^JhW3„hëg«5OJQJ^J;UrŒ   ? ] ~  Ž E
F
Z
º
»
É
úúúúúúúúúïïïäúßÔÏÏÆ½ú„ð`„ðgd²e8„h`„hgdgd²e8
„hVD^„hgd>9gd
„iWD´`„igd
„hWD´`„hgdgdëg«*þqrˆŒ¢®ºêì     / èÚɵ¢•Ú¢µ‚qµ`q`¢MÚ•:$h{/Vhéo+OJPJQJ^JnHtH$h{/V5OJPJQJ^JnHo(tH!hÄ/˜OJPJQJ^JnHo(tH!hb")OJPJQJ^JnHo(tH$h{/Vhÿ/,OJPJQJ^JnHtHhW3„hëg«OJQJ^J$h{/Vhëg«OJPJQJ^JnHtH'h{/Vhÿ/,OJPJQJ^JnHo(tH!hW3„hëg«B*OJQJ^JphÿhW3„hëg«5OJQJ^J-héo+hëg«B*OJPJQJ^JnHphÿtH/ 0 > ? N W \ ] l u } ~  Ž ðÝÉݵ¤µ‘}¤iVH7¤!hW3„hëg«B*OJQJ^JphÿhW3„h5OJQJ^J$h{/V5OJPJQJ^JnHo(tH'héo+héo+OJPJQJ^JnHo(tH'h{/VOJPJQJ^JnHo(tH$h{/VOJPJQJ^JnHtH!hÄ/˜OJPJQJ^JnHo(tH'h{/Vhéo+OJPJQJ^JnHo(tH'h{/VhOJPJQJ^JnHo(tH$h{/Vhéo+OJPJQJ^JnHtHh¸JOJPJQJ^JnHtH˜ « ° ¸ ¹ Ê Ò Ö × Þ ã è é ø ù ú 

)
*
+
9
C