没有合适的资源?快使用搜索试试~ 我知道了~
Revit 2012 API Developer Guide
4星 · 超过85%的资源 需积分: 17 33 下载量 195 浏览量
2012-03-31
11:08:38
上传
评论 1
收藏 9.82MB PDF 举报
温馨提示
试读
433页
All Revit-based products are Parametric Building Information Modeling (BIM) tools. These tools are similar to Computer-Aided Design (CAD) programs but are used to build 3D models as well as 2D drawings. In Revit, you place real-world elements like columns and walls into the model. Once the model is built, you can create model views such as sections and callouts. Views are generated from the 3D physical model; consequently, changes made in one view automatically propagate through all views. This virtually eliminates the need to update multiple drawings and details when you make changes to the model.
资源推荐
资源详情
资源评论
Revit 2012 API
Developer’s Guide
Copyright. 2011 Autodesk, Inc.
All Rights Reserved
This publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.
AUTODESK, INC., MAKES NO WARRANTY, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS, AND MAKES SUCH MATERIALS AVAILABLE
SOLELY ON AN "AS-IS" BASIS. IN NO EVENT SHALL AUTODESK, INC., BE LIABLE TO ANYONE FOR SPECIAL, COLLATERAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF ACQUISITION OR USE OF THESE MATERIALS. THE SOLE AND EXCLUSIVE
LIABILITY TO AUTODESK, INC., REGARDLESS OF THE FORM OF ACTION, SHALL NOT EXCEED THE PURCHASE PRICE, IF ANY, OF THE MATERIALS
DESCRIBED HEREIN.
Autodesk, Inc., reserves the right to revise and improve its products as it sees fit. This publication describes the state of the product at the time of publication, and
may not reflect the product at all times in the future.
Autodesk Trademarks
The following are registered trademarks or trademarks of Autodesk, Inc., in the USA and other countries: 3DEC (design/logo), 3December, 3December.com, 3ds
Max, ActiveShapes, Actrix, ADI, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo), ATC, AUGI, AutoCAD, AutoCAD Learning Assistance,
AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface,Autodesk, Autodesk Envision, Autodesk Insight, Autodesk Intent, Autodesk
Inventor, Autodesk Map, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap, AutoSketch, AutoTrack, Backdraft, Built with ObjectARX(logo), Burn,
Buzzsaw, CAiCE, Can You Imagine, Character Studio, Cinestream, Civil 3D, Cleaner, Cleaner Central, ClearScale, Colour Warper, Combustion, Communication
Specification, Constructware, Content Explorer, Create>what's>Next> (design/logo), Dancing Baby (image), DesignCenter, Design Doctor, Designer's Toolkit,
DesignKids, DesignProf, DesignServer, DesignStudio, Design|Studio (design/logo), Design Your World, Design Your World
(design/logo), DWF, DWG, DWG (logo), DWG TrueConvert, DWG TrueView, DXF, EditDV, Education by Design, Extending the Design Team, FBX, Filmbox,
FMDesktop, GDX Driver, Gmax, Heads-up Design, Heidi, HOOPS, HumanIK, i-drop, iMOUT, Incinerator, IntroDV, Kaydara, Kaydara (design/logo), LocationLogic,
Lustre, Maya, Mechanical Desktop, MotionBuilder, ObjectARX, ObjectDBX, Open Reality, PolarSnap, PortfolioWall, Powered with Autodesk Technology,
Productstream, ProjectPoint, Reactor, RealDWG, Real-time Roto, Render Queue, Revit, Showcase, SketchBook, StudioTools, Topobase, Toxik, Visual, Visual
Bridge, Visual Construction, Visual Drainage, Visual Hydro, Visual Landscape, Visual Roads, Visual Survey, Visual Syllabus, Visual Toolbox, Visual Tugboat,
Visual LISP, Voice Reality, Volo, and Wiretap.
The following are registered trademarks or trademarks of Autodesk Canada Co. in the USA and/or Canada and other countries: Backburner, Discreet, Fire, Flame,
Flint, Frost, Inferno, Multi-Master Editing, River, Smoke, Sparks, Stone, Wire.
Third Party Trademarks
All other brand names, product names or trademarks belong to their respective holders.
Third Party Software Program Credits
ACIS Copyright. 1989-2001 Spatial Corp. Portions Copyright. 2002 Autodesk, Inc. Copyright. 1997 Microsoft Corporation. All rights reserved. Flash 2 is a
registered trademark of Macromedia, Inc. in the United States and/or other countries. International CorrectSpell™ Spelling Correction System. 1995 by Lernout &
Hauspie Speech Products, N.V. All rights reserved. InstallShield™ 3.0. Copyright. 1997 InstallShield Software Corporation. All rights reserved. PANTONE2 Colors
displayed in the software application or in the user documentation may not match PANTONE-identified standards. Consult current PANTONE Color Publications
for accurate color. PANTONE2 and other Pantone, Inc. trademarks are the property of Pantone, Inc.. Pantone, Inc., 2002 Pantone, Inc. is the copyright owner of
color data and/or software which are licensed to Autodesk, Inc., to distribute for use only in combination with certain Autodesk software products. PANTONE Color
Data and/or Software shall not be copied onto another disk or into memory unless as part of the execution of this Autodesk software product. Portions Copyright.
1991-1996 Arthur D. Applegate. All rights reserved. Portions of this software are based on the work of the Independent JPEG Group. RAL DESIGN. RAL, Sankt
Augustin, 2002 RAL CLASSIC. RAL, Sankt Augustin, 2002 Representation of the RAL Colors is done with the approval of RAL Deutsches Institut für
Gütesicherung und Kennzeichnung e.V. (RAL German Institute for Quality Assurance and Certification, re. Assoc.), D-53757 Sankt Augustin. Typefaces from the
Bitstream2 typeface library copyright 1992. Typefaces from Payne Loving Trust. 1996. All rights reserved. AutoCAD 2008 is produced under a license of data
derived from DIC Color Guide2 from Dainippon Ink and Chemicals, Inc. Copyright. Dainippon Ink and Chemicals, Inc. All rights reserved. DIC Color Guide
computer color simulations used in this product may not exactly match DIC Color Guide, DIC color Guide Part 2 identified solid color standards. Use current DIC
Color Guide Manuals for exact color reference. DIC and DIC Color Guide are registered trademarks of Dainippon Ink and Chemicals, Inc. Printed manual and help
produced with Idiom WorldServer™.
WindowBlinds: DirectSkin™ OCX . Stardock® AnswerWorks 4.0 .; 1997-2003 WexTech Systems, Inc. Portions of this software . Vantage-Knexys. All rights
reserved. The Director General of the Geographic Survey Institute has issued the approval for the coordinates exchange numbered TKY2JGD for Japan Geodetic
Datum 2000, also known as technical information No H1-N0.2 of the Geographic Survey Institute, to be installed and used within this software product (Approval
No.: 646 issued by GSI, April 8, 2002). Portions of this computer program are copyright . 1995-1999 LizardTech, Inc. All rights reserved. MrSID is protected by
U.S. Patent No. 5,710,835. Foreign Patents Pending. Portions of this computer program are Copyright .; 2000 Earth Resource Mapping, Inc. OSTN97 . Crown
Copyright 1997. All rights reserved. OSTN02 . Crown copyright 2002. All rights reserved. OSGM02 . Crown copyright 2002, . Ordnance Survey Ireland, 2002. FME
Objects Engine . 2005 SAFE Software. All rights reserved.
GOVERNMENT USE
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212 (Commercial Computer Software-Restricted Rights) and
DFAR 227.7202 (Rights in Technical Data and Computer Software), as applicable.
Table of Contents
Contents
1 Welcome to the Revit Platform API .......................................................................... 19
1.1 Introduction to the Revit Platform API ................................................................. 19
1.2 What Can You Do with the Revit Platform API? ..................................................... 19
1.3 Requirements ................................................................................................... 19
1.4 Install and Learn the Revit-Based Product ............................................................ 20
1.5 Installation ...................................................................................................... 20
1.6 Supported Programming Languages .................................................................... 20
1.7 User Manual ..................................................................................................... 21
1.7.1 Introduction to the Revit Platform API ................................................................. 21
1.7.2 Basic Topics ..................................................................................................... 21
1.7.3 Element Topics ................................................................................................. 21
1.7.4 Advanced Topics ............................................................................................... 22
1.7.5 Product Specific ................................................................................................ 22
1.7.6 Other .............................................................................................................. 22
1.8 Documentation Conventions ............................................................................... 22
1.8.1 Indexed Properties ............................................................................................ 22
1.9 What‘s new in this release ................................................................................. 23
2 Getting Started ......................................................................................................... 24
2.1 Walkthroughs ................................................................................................... 24
2.2 Walkthrough: Hello World .................................................................................. 24
2.2.1 Create a New Project......................................................................................... 24
2.2.2 Add References ................................................................................................ 25
2.2.3 Add Code ......................................................................................................... 25
2.2.4 Build the Program ............................................................................................. 26
2.2.5 Create a .addin manifest file .............................................................................. 26
2.2.6 Debug the Add-in ............................................................................................. 27
2.2.7 Troubleshooting ................................................................................................ 29
2.3 Walkthrough: Add Hello World Ribbon Panel......................................................... 31
2.3.1 Create a New Project......................................................................................... 31
2.3.2 Change the Class Name ..................................................................................... 32
2.3.3 Add Code ......................................................................................................... 32
2.3.4 Build the Application ......................................................................................... 33
2.3.5 Create the .addin manifest file............................................................................ 33
2.3.6 Debugging ....................................................................................................... 34
2.4 Walkthrough: Retrieve Selected Elements ............................................................ 34
2.5 Walkthrough: Retrieve Filtered Elements ............................................................. 35
3 Add-In Integration ................................................................................................... 37
3.1 Overview ......................................................................................................... 37
3.2 External Commands .......................................................................................... 38
3.2.1 Loading and Running External Commands ........................................................... 38
3.2.2 IExternalCommand ........................................................................................... 39
3.3 External Application .......................................................................................... 43
3.3.1 IExternalApplication .......................................................................................... 43
3.4 Add-in Registration ........................................................................................... 45
3.4.1 Manifest Files ................................................................................................... 45
3.4.2 .NET Add-in Utility for manifest files .................................................................... 48
3.5 Localization ...................................................................................................... 50
3.6 Attributes ........................................................................................................ 50
3.6.1 TransactionAttribute .......................................................................................... 50
3.6.2 JournalingAttribute ........................................................................................... 51
3.7 Revit Exceptions ............................................................................................... 52
3.8 Ribbon Panels and Controls ................................................................................ 52
3.8.1 Create a New Ribbon Panel and Controls ............................................................. 52
3.8.2 Ribbon Panel .................................................................................................... 53
3.8.3 Ribbon Controls ................................................................................................ 54
3.9 Revit-style Task Dialogs .................................................................................... 61
4 Application and Document ........................................................................................ 63
4.1 Application Functions ........................................................................................ 63
4.1.1 Application ....................................................................................................... 63
4.1.2 UIApplication.................................................................................................... 64
4.2 Document Functions ......................................................................................... 65
4.2.1 Document ........................................................................................................ 65
4.2.2 UIDocument ..................................................................................................... 66
4.3 Document and File Management ......................................................................... 67
4.3.1 Document Retrieval .......................................................................................... 67
4.3.2 Document File Information ................................................................................. 67
4.3.3 Open a Document ............................................................................................. 67
4.3.4 Create a Document ........................................................................................... 67
4.3.5 Save and Close a Document ............................................................................... 68
4.3.6 Load Family ..................................................................................................... 68
4.4 Settings ........................................................................................................... 68
4.5 Units ............................................................................................................... 70
5 Elements Essentials .................................................................................................. 71
5.1 Element Classification ....................................................................................... 71
5.1.1 Model Elements ................................................................................................ 71
5.1.2 View Elements .................................................................................................. 71
5.1.3 Group Elements ................................................................................................ 71
5.1.4 Annotation and Datum Elements ......................................................................... 71
5.1.5 Sketch Elements ............................................................................................... 72
5.1.6 Information Elements ........................................................................................ 72
5.2 Other Classifications.......................................................................................... 72
5.2.1 Category ......................................................................................................... 72
5.2.2 Family ............................................................................................................. 75
5.2.3 ElementType .................................................................................................... 76
5.2.4 Instance .......................................................................................................... 76
5.3 Element Retrieval ............................................................................................. 77
5.3.1 Getting an Element by ID .................................................................................. 77
5.3.2 Filtering the Elements Collection ......................................................................... 77
5.3.3 Selection ......................................................................................................... 77
5.3.4 Accessing Specific Elements from Document ........................................................ 77
5.4 General Properties ............................................................................................ 78
5.4.1 ElementId ........................................................................................................ 78
5.4.2 UniqueId ......................................................................................................... 79
5.4.3 Location .......................................................................................................... 79
5.4.4 Level ............................................................................................................... 80
5.4.5 Parameter........................................................................................................ 81
6 Filtering .................................................................................................................... 82
6.1 Create a FilteredElementCollector ....................................................................... 82
6.2 Applying Filters................................................................................................. 82
6.2.1 Quick filters ..................................................................................................... 83
6.2.2 Slow Filters ...................................................................................................... 86
6.2.3 Logical filters .................................................................................................... 88
6.3 Getting filtered elements or element ids .............................................................. 89
6.4 LINQ Queries ................................................................................................... 92
7 Selection ................................................................................................................... 94
7.1 Changing the Selection ...................................................................................... 94
7.2 User Selection .................................................................................................. 95
7.3 Filtered User Selection ....................................................................................... 96
8 Parameters ............................................................................................................... 98
8.1 Walkthrough: Get Selected Element Parameters ................................................... 98
剩余432页未读,继续阅读
资源评论
- qq_318787892017-11-14非常的谢谢
- hongwei812013-01-09谢谢共享,不过SDK中好像自带
- ch_ma2013-08-23SDK中确实已经自带了,仍然感谢作者的共享,对我很有帮助
huiniu0509
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功