Files
RevitSdkSamples/snapshot/2008/SDK/Samples/ArchSample/VB.NET/ReadMe_ArchSample.rtf
T

82 lines
35 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ ACþÿÿÿ@ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á` ñR¿®
bjbjËsËs ."©©®ÿÿÿÿÿÿ¤òòòòòòòŽŽŽŽ<Ê@6øêêêêêÅÅÅ0&Á5Á5Á5Á5Á5Á5$88h :|å5òÅÅÅÅÅå5òòêêÛú5ËËËÅòêòê›0ËÅ›0ËË6O-ôòòw/êÞ 0‚mƀǎG
C.060@6_.;Qp;8w/;òw/$ÅÅËÅÅÅÅÅå5å5Á
ÅÅÅ@6ÅÅÅÅ$* d* òòòòòòÿÿÿÿ Application: ArchSample
Revit product and version: Revit Architecture 2008
Last Modified: 8/12/2006
Modified By: LL Autodesk HSL
Programming Language: VB.NET
Subject: This sample exports the contents of an entire project to Microsoft Excel 2003.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Collections.Map
Autodesk.Revit.Collections.MapIterator
Autodesk.Revit.ElementSet
Autodesk.Revit.Element
Autodesk.Revit.Parameter
Autodesk.Revit.ParameterSet
Autodesk.Revit.Collections.Set
Project Files:
Command.vb
It contains the class Command which implements interface IExternalCommand and main functions such as searching all the elements based upon category, sending the data to Excel.
Description:
This sample provides following functionalities.
Search the entire Revit project and sort the elements based upon category. Revit Symbols (Types) are ignored as we are only interested in instances of elements.
Take a category and a set of elements that belong to that category and find the common properties between those elements.
Send the names and values of these properties to Excel and add the category as a new sheet.
Each category in the Revit project will be translated to a worksheet in Excel. Each sheet will contain a column for each parameter that is shared amongst the elements within that category, such as wall area.
Instructions:
You must have Microsoft Excel 2003 for this sample.
Open Revit.
Execute the external command.
 
23JKQRYZcdpqrñäÚÌñ俱¦“…wfU…H4'h6@h} †OJPJQJ^JnHo(tHhW3„hROJQJ^J!hW3„hRB*OJQJ^Jphÿ!hr8ƒOJPJQJ^JnHo(tHnhR6OJQJ^JhW3„hR5OJQJ^J$h6@5OJPJQJ^JnHo(tHh6@5OJQJ^Jh•_Ghëg«6OJQJ^Jh¢fh¢fOJQJ^Jhj>jhëg«6OJQJ^JhÆF8OJQJ^JhW3„hëg«OJQJ^JhW3„hëg«5OJQJ^JKdžŸøù # B i ƒ š ³ Ï î ï ÿ
º
»
É
ù
ùôùïïôôôùææææææææôááØááá„h^„hgd:;gdÚ?„h`„hgd:;gdRgdëg«@&gdR®
þrsžŸ§¨©´µ÷ëáÍ¿±ƒugSFS9hV=„hs67OJQJ^JhV=„hROJQJ^J'hV=„h>OJPJQJ^JnHo(tHhRhëg«6OJQJ^JhW3„hëg«5OJQJ^JhRhëg«OJQJ^JhW3„hROJQJ^J'h6@h_úOJPJQJ^JnHo(tHhRB*OJQJ^JphÿhW3„hR5OJQJ^J'hë`hROJPJQJ^JnHo(tHhë`OJQJ^J'h6@h** OJPJQJ^JnHo(tH÷øù   " # A B h i ƒ š ² í×ɼ²Ÿ‹xdxdQ=Q=Q'h:;hPOJPJQJ^JnHo(tH$h:;hPOJPJQJ^JnHtH'h:;ht(ÈOJPJQJ^JnHo(tH$h:;ht(ÈOJPJQJ^JnHtH'hV=„hROJPJQJ^JnHo(tH$h:;hëg«OJPJQJ^JnHtHhROJQJ^JhW3„hëg«OJQJ^JhW3„hëg«5OJQJ^J*hêihêi6OJPJQJ^JnHo(tH$hs676OJPJQJ^JnHo(tH² ³ Î Ï í î ï ý þ ÿ
S
]
ëØÄ±‚ugTA0!h:;OJPJQJ^JnHo(tH$h:;?OJPJQJ^JnHtH$hV=„?OJPJQJ^JnHtHh¾(}?6OJQJ^JhW3„?OJQJ^JhW3„?5OJQJ^JhW3„hOJQJ^J'h:;hémÈOJPJQJ^JnHo(tH$h:;hémÈOJPJQJ^JnHtH'h:;hOJPJQJ^JnHo(tH$h:;hOJPJQJ^JnHtH'hV=„hPOJPJQJ^JnHo(tH ]
¸
º
»
Ç
È
É
Ü
Ý
ô
÷
ø
ù
ú
4 5 š ë×É»®ëkXDX0k'h®#âh®#âOJPJQJ^JnHo(tH'hÒ6”h®#âOJPJQJ^JnHo(tH$hÒ6”h®#âOJPJQJ^JnHtH'hV=„h®#âOJPJQJ^JnHo(tH!hex¢OJPJQJ^JnHo(tHhV=„?OJQJ^J!?OJPJQJ^JnHo(tHhW3„?OJQJ^JhW3„?5OJQJ^Jh¾(}?6OJQJ^J'h:;?OJPJQJ^JnHo(tH'hV=„?OJPJQJ^JnHo(tHù
š  p @
A
P
®
÷÷÷÷òìì××
& F
Ƥh„h„˜þ^„h`„˜þgdXhü@&gdÚ?gdÚ?
& F gd®#â ð ò û ü     A D J N n o p Ï Ð ?
@
A
N
O
P
íÜíÜíÈÜ´í´í´í´Èí´í¡nXKhV=„?OJQJ^J*?B*OJPJQJ^JnHo(phÿtH!hW3„?B*OJQJ^JphÿhW3„?5OJQJ^J'h
(•?OJPJQJ^JnHo(tH$h¶T?h®#âOJPJQJ^JnHtH'hV=„h®#âOJPJQJ^JnHo(tH'h®#âh®#âOJPJQJ^JnHo(tH!h®#âOJPJQJ^JnHo(tH$hÒ6”h®#âOJPJQJ^JnHtH