ImageVerifierCode 换一换
格式:DOC , 页数:15 ,大小:262.50KB ,
资源ID:7675812      下载积分:10 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/7675812.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(GettingStartedwiththeRevitAPI.doc)为本站上传会员【xrp****65】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

GettingStartedwiththeRevitAPI.doc

1、 Autodesk Revit 2012 API – Getting Started Table of Contents Overview 2 What Can I Do With the Autodesk Revit API? 2 What You Will Need to Get Started 2 Understanding Autodesk Revit 2 Installation of the Autodesk Revit API 3 Development Requirements 3 Using the Autodesk Revit API 3 Autode

2、sk Revit SDK and Online Help 3 Documentation Conventions 4 What can you do with the Autodesk Revit API? 4 Deployment Options 4 1. External commands 4 2. External applications 4 3. REX addins 5 Registration of add-ins 5 External Commands 7 The IExternalCommand Interface 7 Parameters 7 Retu

3、rn Value 7 Remarks 8 Using an Autodesk Revit API External Command 8 External Command Object Lifetime 8 External Applications 8 The IExternalApplication Interface 9 Parameters 9 Return Value 9 External Application Object Lifetime 9 Compatibility of API applications with 64-bit Revit 9 Debug

4、ging Your Application in MS Visual Studio 2010 9 The Revit Unit System 10 Storing and accessing Custom Data for Applications 11 Appendix 1 – Glossary of Autodesk Revit terms 12 Appendix 2 - FAQ 12 General: 12 Autodesk Revit Structure: 14 Overview Autodesk Revit Architecture 2012, Autodesk Re

5、vit Structure 2012 and Autodesk Revit MEP 2012 offer an API designed to allow power users and external application developers to integrate their applications with Autodesk Revit. The APIs for each of these three products are very similar and will be jointly referred to as the Autodesk Revit 2012 API

6、 or Autodesk Revit API. It is strongly recommended that you become familiar with Autodesk Revit Architecture, Structure or MEP and its features before attempting to use the Autodesk Revit API. Training can be found through the Autodesk Developer Network (ADN). What Can I Do With the Autodesk Rev

7、it API? The following are general areas where the API is suitable: · Creating add-ins to automate repetitive tasks in the Autodesk Revit user interface · Enforcing project design standards by checking for errors automatically · Extracting project data for analysis and to generate reports · Imp

8、orting external data to create new elements or parameter values · Integrating other applications, including analysis applications, into Autodesk Revit products · Creating Autodesk Revit project documentation automatically What You Will Need to Get Started · A working understanding of Autodesk

9、 Revit Architecture, Autodesk Revit Structure or Autodesk Revit MEP 2012 · An installation of an Autodesk Revit-based product, including the Software Development Kit · MS Visual Studio 2010 or MS Visual Studio 2010 Express Edition, or a full installation of Microsoft Visual Studio. If you plan to

10、start with VSTA, you do not need to install any of these. · Some experience in a .NET based development language (Autodesk Revit API examples are provided in C# and Visual Basic.NET.) · 2 days of free time Understanding Autodesk Revit All Autodesk Revit-based products are Parametric Building I

11、nformation Modeling (BIM) tools. Such a tool can be looked at as a CAD program that is used to build a 3D model rather than a set of individual drawing files. Autodesk Revit modeling is accomplished with real-world elements like columns, walls, doors and windows. The user can create views of the mod

12、el, including plans, sections and callouts. All these views are directly generated from the 3D physical model so changes made in one view will automatically propagate through all other views. This process virtually eliminates the need to update multiple drawings and details when a change is made in

13、the model. The Autodesk Revit API is designed to reflect the same user interaction paradigms as the program’s Graphical User Interface. Therefore, the first step to understanding the API is to learn how to use the program. If you are an Autodesk Revit novice, we suggest you first start by going t

14、hrough the Tutorials which you can access through the program’s Help menu. You may also find it helpful to take a Training class from your local Autodesk reseller. This will help you quickly get up to speed with the program Autodesk Resources: · · · · · Select = Autodesk Revit B

15、uilding Then Select = Autodesk Revit API External Resources: · · · Installation of the Autodesk Revit API The Autodesk Revit API is automatically installed with the default installation of the Autodesk Revit based product. The Autodesk Revit API Software Development Kit is install

16、ed from the Tools and Utilities section of the Autodesk Revit installation DVD. Development Requirements The Autodesk Revit API requires the Microsoft .NET Framework v3.5. To edit and debug your API applications, you need an interactive development environment such as Microsoft Visual Studio

17、2008 or one of the MS Visual Studio Express Editions for C# or Visual Basic.NET. When developing with the Autodesk Revit API, ensure that your project references two DLLs: RevitAPI.dll and RevitAPIUI.dll contained in the Autodesk Revit Program directory. Some programming skills are required to eff

18、ectively use the API. If you are a beginner in programming, we strongly advise you to learn Microsoft Visual Studio 2008 and one of the compatible languages like C# or Visual Basic.NET. There are many good books and classes to get you started. Resources: Online resources · Free Visual Studio –

19、 · · · Books: · Code Complete, Second Edition, by Steve McConnell · Software Project Survival Guide, by Steve McConnell Using the Autodesk Revit API Autodesk Revit SDK and Online Help Get the Autodesk Revit SDK from ADN or the installation DVD. The Autodesk Revit 2012 SDK can be unpa

20、cked and installed from the Tools and Utilities option in the installation DVD. In the SDK, there are example files that will help you get a better understanding of the API and its use. Each example file has a sample revit.ini file with the information that you will need to edit and place into the r

21、evit.ini file located in your Autodesk Revit Program folder, which Autodesk Revit will access on launch. · Unzip the SDK onto a local drive · Read the Read Me First.doc in the SDK RevitAPI.chm is the Autodesk Revit API reference documentation help file, included with the SDK package in the \Revit

22、 2012 SDK\ folder. Resources: - Autodesk Developer Network home (ADN) - Autodesk Revit development resources – Autodesk product discussion groups Select = Autodesk Revit Architecture Then Select = Autodesk Revit API - The Building Coder, an AND blog dedicated to Revit coding Documentat

23、ion Conventions This document will contain names in namespace format, such as Autodesk.Revit.DB.Element What can you do with the Autodesk Revit API? Deployment Options The Autodesk Revit API supports in-process DLLs only. This means that your API application will be compiled as a DLL loaded int

24、o the Autodesk Revit process. The Autodesk Revit API supports single threaded access only. This means that your API application must perform all Autodesk Revit API calls in the main thread (which is called by the Autodesk Revit process at various API entry points), and your API application canno

25、t maintain operations in other threads and expect them to be able to make calls to Autodesk Revit at any time. There are two types of DLLs that you can create with the Autodesk Revit API: 1. External commands The Autodesk Revit API enables you to add new commands to the user interface of Autodesk

26、 Revit. These commands will appear in the Add-ins tab under the ‘External Tools’ pulldown, as seen in Figure 1. Through the API, external tool commands have access to the Autodesk Revit database, as well as the currently selected elements. Figure 1 - External Tool added to Revit 2. External ap

27、plications The Autodesk Revit API enables you to also add external applications. These applications are invoked during Autodesk Revit startup and shutdown. They can create new panels in the Add-ins tab, as seen in Figure 2. They can also register handlers that can react to events occurring in th

28、e Autodesk Revit user interface. Figure 2 - New panels and controls added to Revit 3. REX addins REX is an API framework that lets you build applications for Revit in .NET similar to classes that implement IExternalCommand. REX is meant to give you a more high-level development environment

29、 through built-in resources such as: · Automatic dialog box creation and display · Libraries to work with units and geometry · Built-in command-based architecture to make menu and toolbar development easier. · A standard mechanism for accessing a reference to the Revit application object. ·

30、 Automatic deployment and installation of addins for easy debugging. Please see the “\Revit 2012 SDK\REX SDK\” folder for more details. Registration of add-ins The Revit API offers the ability to register API applications via a .addin manifest file. Manifest files will be read automatically b

31、y Revit when they are places in one of two locations on a user's system: · In a non-user specific location in "application data" o For Windows XP - C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012\ o For Vista/Windows 7 - C:\ProgramData\Autodesk\Revit\Addins\2012\

32、· In a user specific location in "application data" o For Windows XP - C:\Documents and Settings\\Application Data\Autodesk\Revit\Addins\2012\ o For Vista/Windows 7 - C:\Users\\AppData\Roaming\Autodesk\Revit\Addins\2012\ All files named .addin in these locations will be read and proce

33、ssed by Revit during startup. A basic file adding one ExternalCommand looks like this: c:\MyProgram\MyProgram.dll 76eb700a-2c85-4888-a78d-31429ecae9ed

34、 Revit.Samples.SampleCommand Sample command NotVisibleInFamily NotVisibleInMEP Revit.Samples.SampleAccessibilityCheck

35、 A basic file adding one ExternalApplication looks like this: My sample application c:\MyProgram\MyProgram.dll

36、>604B1052-F742-4951-8576-C261D1993107 Revit.Samples.SampleApplication Multiple AddIn elements may be provided in a single manifest file. The new mechanism currently offers the following XML tags: Tag Description Assem

37、bly The full path to the add-in assembly file. Required for all ExternalCommands and ExternalApplications. FullClassName The full name of the class in the assembly file which implements IExternalCommand or IExternalApplication. Required for all ExternalCommands and ExternalApplications. AddI

38、nId A GUID which represents the id of this particular application. AddInIds must be unique for a given session of Revit. Autodesk recommends you generate a unique GUID for each registered application or command. Required for all ExternalCommands and ExternalApplications. The property UIApplication

39、ActiveAddInId provides programmatic access to this value, if required. Name The name of application. Required; for ExternalApplications only. Text The name of the button. Optional; use this tag for ExternalCommands only. The default is "External Tool". Description Short description of t

40、he command, will be used as the button tooltip. Optional; use this tag for ExternalCommands only. The default is a tooltip with just the command text. VisibilityMode Provides the ability to specify if the command is visible in project documents, family documents, or no document at all. Also prov

41、ides the ability to specify the discipline(s) where the command should be visible. Multiple values may be set for this option. Optional; use this tag for ExternalCommands only. The default is to display the command in all modes and disciplines, including when there is no active document. Previously

42、written external commands which need to run against the active document should either be modified to ensure that the code deals with invocation of the command when there is no active document, or apply the NotVisibleWhenNoActiveDocument mode. AvailabilityClassName The full name of the class in t

43、he assembly file which implemented IExternalCommandAvailability. This class allows the command button to be selectively grayed out depending on context. Optional; use this tag for ExternalCommands only. The default is a command that is available whenever it is visible. LargeImage The path to the

44、 icon to use for the button in the External Tools pulldown menu. The icon should be 32 x 32 pixels for best results. Optional; use this tag for ExternalCommands only. The default is to show a button without an icon. LongDescription Long description of the command, will be used as part of the but

45、ton's extended tooltip. This tooltip is shown when the mouse hovers over the command for a long amount of time. You can split the text of this option into multiple paragraphs by placing

tags around each paragraph. Optional; use this tag for ExternalCommands only. If neither of this property and

46、TooltipImage are supplied, the button will not have an extended tooltip. TooltipImage The path to an image file to show as a part of the button extended tooltip, shown when the mouse hovers over the command for a longer amount of time. Optional; use this tag for ExternalCommands only. If neither

47、 of this property and TooltipImage are supplied, the button will not have an extended tooltip. LanguageType Localization setting for Text, Description, LargeImage, LongDescription, and TooltipImage of external tools buttons. Revit will load the resource values from the specified language resourc

48、e dll. The value can be one of the eleven languages supported by Revit. If no LanguageType is specified, the language resource which the current session of Revit is using will be automatically loaded. External Commands · Implement support for a specific interface, in this case Autodesk.Revit.UI.IExternalCommand. · Adds one or more entries to the Revit.ini file describing the external command. Technicall

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服