TM Getting Started with the Revit API Kristian Parsons Westfield Design & Construction.

Slides:



Advertisements
Similar presentations
Using VB with MS Applications R. Juhl, Delta College.
Advertisements

Tutorial 8: Developing an Excel Application
Tutorial 12: Enhancing Excel with Visual Basic for Applications
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Integrating Access with the Web and with Other Programs.
1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Using the Visual Basic Editor Visual Basic for Applications 1.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Materials & Prerequisites Course Outline Background Information.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
Introduction to VB.NET Tonga Institute of Higher Education.
Classroom User Training June 29, 2005 Presented by:
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Integrated Development Environment (IDE)
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Taking Control of Visual Studio through Extensions and Extensibility Anthony Cangialosi Senior Program Manager Lead Microsoft Corporation DEV311.
As we upgrade from ImageNow 6.1 to ImageNow 6.3, there are some changes to the interface that the end-users will see. These slides cover changes to the.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Office Fundamentals Robert Grauer,
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
XP Creating Web Pages with Microsoft Office
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 2: The Visual Studio .NET Development Environment
Computer Software: Programming
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Microsoft Office Illustrated
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
Microsoft Office Access 2003
Microsoft Office Access 2003
Microsoft Office Illustrated Fundamentals
Presentation transcript:

TM Getting Started with the Revit API Kristian Parsons Westfield Design & Construction

Revit Technology Conference 2010 About the Speaker Currently software developer for Westfield Design. Customising Autodesk products for seven years. Customising Revit for over two years. Started out by teaching myself simple LISP routines. Self taught VBA, VB.NET and C#.

Revit Technology Conference 2010 Class Outline This class will cover the following topics: Glossary and Definitions Microsoft Visual C# Express Environment List of Add-Ons Examples: "Hello World" program "Text Case" program "Text Align" program Adding tools to the Ribbon

Revit Technology Conference 2010 Glossary and Definitions The following terms will be used in this class: Variable - An object that stores a value of a given type. Type - A storage format that can contain a specific range of values. Statement - A single instruction in the program. Function - A set of statements that perform a task. Class - A collection of related variables and functions. API - Application Programming Interface, an interface provided by Autodesk that allows custom software to interact with Revit. IDE - Integrated Development Environment, combines coding tools with debugging and compilation tools (such as Visual Studio). SDK - Software Development Kit, a set of tools, samples and documentation to assist with using the API.

Revit Technology Conference 2010 Microsoft Visual C# Express Environment Why C#? C# is one of the most commonly used programming languages. The majority of SDK samples are in C#. The majority of online examples are in C#. Visual C# Express Components: Toolbox Solution Explorer Properties Main Document Window

Revit Technology Conference 2010 Microsoft Visual C# Express Environment

Revit Technology Conference 2010 List of Add-Ons Annotation Tools: Text Case - changes the case of text objects to; Upper, Lower, Sentence or Title Case. Text Align - aligns selected text objects with another text object. Text Box - draws a bounding box around selected text objects. Find & Replace - standard find and replace tool. DWG Export - uses built in DWG Export, but applies company standard filenames and settings. Usage Log - writes all saves to a centralised database. Room Height Updater - calculates room height based on associated floor and ceiling objects and writes this value to a shared parameter. Family Browser - modeless dialog for searching and loading families.

Revit Technology Conference 2010 “Hello World” Example Basic steps: 1.Select "New Project..." from the "File" menu. 2.Select "Class Library" as the project type. 3.Add a reference to the "RevitAPI.dll" (set "Copy Local" to false). 4.Add a reference to "System.Windows.Forms". 5.Implement interface "IExternalCommand" (use intellisense). 6.Add a pop-up message saying "Hello World". 7.Return "Cancelled" since we do not edit the Revit model. 8.Update the "Revit.ini" file to include our add-on. 9.Debug the program.

Revit Technology Conference 2010 “Text Case” Example Basic steps: 1.Select "New Project..." from the "File" menu. 2.Select "Class Library" as the project type. 3.Add a reference to the "RevitAPI.dll" (set "Copy Local" to false). 4.Implement interface "IExternalCommand" (use intellisense). 5.Check if the user has already selected some textNote objects. a.If not, use a filter to select all textNote objects in the project. 6.Loop through all selected textNote objects changing the case to upper case. 7.Tell Revit that we changed something in the database. 8.Update the "Revit.ini" file to include our add-on. 9.Debug the program.

Revit Technology Conference 2010 “Align Text” Example Basic steps: 1.Select "New Project..." from the "File" menu. 2.Select "Class Library" as the project type. 3.Add a reference to the "RevitAPI.dll" (set "Copy Local" to false). 4.Implement interface "IExternalCommand" (use intellisense). 5.Make sure that the user has selected some textNote objects a.If not, throw an error. 6.Ask the user to select a single textNote object to align the others to. 7.Loop through the selected textNote objects changing their position to align with the selected one. 8.Tell Revit we have changed something in the database. 9.Update the "Revit.ini" file to include our add-on. 10.Debug the program.

Revit Technology Conference 2010 “Add Tools to Ribbon” Example Basic steps: 1.Select "New Project..." from the "File" menu. 2.Select "Class Library" as the project type. 3.Add a reference to the "RevitAPI.dll" (set "Copy Local" to false). 4.Implement interface "IExternalApplication" (use intellisense). 5.Add a new Ribbon panel. 6.Add two new buttons to the new panel using our text tools. 7.Update the "Revit.ini" file to include our add-on (and remove precvious entries). 8.Debug the program.

Revit Technology Conference 2010 Resources Online Blogs: Jeremy Tammik ( Rod Howarth ( Matt Mason ( Discussion Groups: Autodesk ( AUGI ( ADN (not free) ( Offline SDK Samples RevitAPI.chm API Developers Guide

Revit Technology Conference 2010 Kristian Parsons Westfield Design & Construction Questions