© 2011 Autodesk Automating Autodesk® Revit® Server Rod Howarth Software Development Manager – Bornhorst + Ward.

Slides:



Advertisements
Similar presentations
© 2011 Autodesk The e-SPECS® BIM Process Peter Marchese Microdesk, Senior Consultant.
Advertisements

© 2011 Autodesk Capitalize on Corridor Improvements in AutoCAD ® Civil 3D ® Don Quinn Civil Engineer / Eagle Point Product Specialist.
© 2012 Autodesk Get Your Head into the Cloud: How to Make Digital Asset Management Work for You Oscar R. Cantu’ Topcon University.
© 2012 Autodesk How to Establish Autodesk® PLM 360 as the Platform for Enabling PLM and Related Processes Prayush Saraswat PLM Business Process Consultant.
© 2012 Autodesk M5935-V Integrating SAP® with AutoCAD® Bill Svokos CIDEON consultant SAP PLM.
© 2012 Autodesk CM6070-V Extend Revit Server with IMAGINiT Clarity Beau Turner Product Director.
© 2012 Autodesk Conceptual and Design Workflows Using Autodesk ® 360 Integrated Applications Anirban Ghosh Principal User Experience Designer – DLS Mobile.
© 2011 Autodesk Publishing Infrastructure Data to Map Books GS3341 Andy Morsell, P.E. Consultant Autodesk Global Services Utilities & Telecom Consulting.
© 2012 Autodesk Dario Nicolini Product Manager Autodesk ® Inventor ® iLogic: a great Autodesk tool to improve Inventor features.
© 2011 Autodesk Autodesk® Revit® MEP: Fast Families for Engineers David Butts BIM Specialist – Gannett Fleming.
Scripting Components for AutoCAD Plant 3D
© 2012 Autodesk CI 3907: AIM to Please with Your Transportation Project - Part 1 Alan Gilbert, PE, LSI & Wes Newman Autodesk Transportation Technical Specialists.
© 2012 Autodesk Do More With Less ETO API’s Ishwar Nagwani Technical Consultant.
© 2011 Autodesk CP5239 Demand-Loading AutoCAD®.NET Plug-ins James E. Johnson Synergis Software Sr. CAD Developer.
© 2012 Autodesk Implementing Cloud-Based Productivity Solutions with the AutoCAD® ObjectARX® API Ravi Krishnaswamy Senior Software Architect.
© 2011 Autodesk SE4186: Getting Productive with Autodesk Revit ® Structure David Bleiman CEO, Rutherford & Chekene.
© 2012 Autodesk Autodesk 360 Jerry Campbell VDC Consultant.
© 2011 Autodesk High-End Infrastructure Modeling with Low-Cost Tools: Introducing AutoCAD® Map 3D 2012 Bradford Heasley, GISP Vice President, Brockwell.
Quality Control for Autodesk® Revit® MEP Models
© 2012 Autodesk AutoCAD ® Virtualized and Digitized michael trachtenberg - AE BackOffice Software Director.
© 2012 Autodesk BIM on an Etch a Sketch Jose Guia Janitor extraordinaire
© 2011 Autodesk Autodesk® Revit® MEP: Project Startup Survival Kit Derek P. Renn AEC Technical Manager, Kelar Pacific.
Customizing Autodesk® Navisworks® 2013 with the .NET API
© 2012 Autodesk AutoCAD on Electrical Steroids Randy Brunette Electrical Subject Matter Expert (Autodesk)
© 2012 Autodesk Autodesk® Revit® MEP: Project Startup Survival Kit Derek P. Renn AEC Technical Manager, Kelar Pacific.
© 2012 Autodesk Matthew Stuver, LEED AP BD+C BIM Manager Dynamix Engineering Ltd. MP1425-R: AU2012 AutoCAD® Revit® MEP Family Reunion.
© 2012 Autodesk MP3765-P - Using BIM to Streamline Your Energy Modeling Workflows Jeff Olden Energy Analyst.
© 2012 Autodesk Autodesk Structural Curriculum 2013 Unit 2: User Interface Autodesk® Revit® Structure Software User Interface.
© 2011 Autodesk Converting Existing Piping Specs Ian Matthew Technical Marketing Manager, Autodesk.
© 2011 Autodesk Managing Your Standards and Reusable Content with AutoCAD Tool Palettes – Revealed! Matt Murphy Director of Content Management and Development.
© 2012 Autodesk Adding Instrumentation and Electrical Capabilities to Autodesk® Plant Design Suite Andy Bonfield.
© 2012 Autodesk Autodesk® Revit® MEP: Get Current with Electrical Engineering Module 1 – Dual Circuiting Seth Mathis Schmidt Associates BIM Designer.
Web Services An Introduction Copyright © Curt Hill.
© 2011 Autodesk Rain in the Plain: An Introduction to Autodesk® Storm and Sanitary Analysis Matthew Anderson, PE CFM QA Consultant – Autodesk. Inc. Lab.
© 2012 Autodesk Going for the Gold with Data Management AB6022-V Adam Peter Customer Success Engineer.
© 2012 Autodesk Can You Afford to Use Old Training Methods on New Technology? Module 1: Why Old Training Methods Don’t Work Steve Biver Civil Product Line.
Join us on Twitter: #AU2014. Class summary text goes here Class summary.
© 2011 Autodesk Optimizing Digital Drawing Files and BIM Models for Measurement and Estimating Simon Lovegrove MRICS, AAIQS Director, Exactal.
© 2011 Autodesk Showcase your Inventor Models David Edward Gaskill CAD Designer or
© 2012 Autodesk Have a tablet? The handout is available for iBooks, Kindle, and Adliko.
© 2012 Autodesk Customizing AutoCAD P&ID David Wolfe Process and Power Specialist.
© 2012 Autodesk The Picture Says It All: Commercial Site Plan 3D Visualizations Using Autodesk® IDS John Sayre Civil Application Engineer.
© 2011 Autodesk The Suite Life of AutoCAD® Guillermo Melantoni Sr Product Manager: Workflows and Interoperability at Autodesk.
© 2012 Autodesk SM3595-R | Thinking of Design, Engineering, and Simulation Differently! Luke Mihelcic Product Marketing Manager | ISM – Simulation Industry.
© 2012 Autodesk Collaboration Systems – It’s good to share Martin Duke Business Systems Manager.
© 2011 Autodesk Painless Productivity Programming with the AutoCAD Action Recorder – Revealed! Matt Murphy Director of Content Management and Development.
© 2012 Autodesk Gordon Luckett – Municipal Asset Management with Autodesk® Software Gordon Luckett GIS Consultant, Developer.
© 2014 Autodesk Getting started with Desktop Subscription.
© 2011 Autodesk Publish Autodesk® Inventor® Building Components for Consumption in AutoCAD® MEP and Revit® MEP Jay Ayala Solutions Engineer.
© 2012 Autodesk From CAD to Awesome: AutoCAD® and Autodesk® SketchBook® Designer Guillermo Melantoni Product Line Manager: Personal Design & Fabrication.
AutoCAD® Civil 3D® Profile Views, Data Bands, and Styles
The Client-Server Model
The Point For Coordination Module 1: Setting The Survey Point
Managing the Construction Administration Phase in Autodesk® Revit®
Everything You Need to Know About Autodesk® Revit® Structure View Filters Jared Rodrigues Senior CAD Drafter.
Revit Exchange Store.
Water! Water! Quenching Your Thirst for Water in AutoCAD® Civil 3D®
Step it up a Rung from AutoCAD® Designs to AutoCAD® Electrical (MA4762-L) Todd Schmoock Solutions Engineer - Synergis Technologies, Inc.
Creating Intelligent Details in Autodesk® Revit®
Check Out These ‘Suite’ Workflows
Using Scripts, AutoLISP® and
Using Quantity Takeoff and Linked Models in Revit to Estimate a Project as the Design Changes Kevin R. Miller, Brigham Young University Scott Davis & TJ.
CM1847 Migrating AutoCAD Standards to Revit
Are Your Buildings Floating in the Air
Autodesk Navisworks: Practical Tips and Tricks from Seven Years in the Construction Industry Josh Lowe Project Lead, TURIS Systems.
BIM for Interiors: Making Autodesk® Revit® Work for You
MP1483 Massing and using Architecture Models for Revit MEP 2013 Analysis Simon Whitbread Application Specialist.
Using Quantity Takeoff and Linked Models in Revit to Estimate a Project as the Design Changes Kevin R. Miller, Brigham Young University Scott Davis & TJ.
Beyond Massing: Conceptual Design in Autodesk® Revit® Architecture 2012 David Fano Partner | CASE Design, Inc |
Presentation transcript:

© 2011 Autodesk Automating Autodesk® Revit® Server Rod Howarth Software Development Manager – Bornhorst + Ward

© 2011 Autodesk Class Summary This class will explore the API’s that are exposed by Autodesk Revit Server and how we can make use of them in some interesting applications.

© 2011 Autodesk Learning Objectives At the end of this class, you will be able to:  Explain how Revit server automation can be integrated into existing software processes  Describe the REST interface to Revit Server  Combine the Revit Server command line and the Revit API to perform a task in a Revit model on a schedule  Use the supplied command line utility to create local files from Revit Server

© 2011 Autodesk Agenda  Revit Server Background  REST API Overview  Intro  What is REST?  How to access it  Rest API overview  What can I use it for?  HTML Server Admin  Interface with existing system  Revit Server Command Line Tools  Creating local files  Opportunities

© 2011 Autodesk Revit Server Background

© 2011 Autodesk Revit Server Background  Young product  Replaces file system storage of central files  Optimizes network traffic  Allows replication  Hosted in IIS  Web based administration tool

© 2011 Autodesk Admin Tool

© 2011 Autodesk REST API Overview

© 2011 Autodesk Revit Server API – What is it?  Allows administration of folders and models  Exposes the functionality from the online admin tool  User guide available in the Revit SDK  Web based API  Uses REST

© 2011 Autodesk What is REST?  Representational State Transfer (REST)  Web based API that uses URLs to interact  Based on HTTP specification  Browsers access websites in the same way  Uses HTTP Verbs  GET - Read only retrieval of a resource  POST – Modify/update a resource  PUT – Create/Overwrite a resource  DELETE - Delete a resource

© 2011 Autodesk What is a resource?  A resource is identified by a URL (Uniform Resource Locator)  Browsers request a ‘resource’ from a web server (usually GET requests)  Verbs and query string define what to do to this resource  Querystring is the ?parameter=value&parameter2=value  Server responds with response code and data  404 is a HTTP response code for resource not found  200 is the code for success

© 2011 Autodesk Anatomy of a HTTP request GET HTTP/1.1 Header: value Header2: value2 Host Name Resource Protocol Verb Header list HTTP Version

© 2011 Autodesk Anatomy of a HTTP Response HTTP/ OK Content-Type: text/html; charset=utf-8 Header: Value Header2: Value2 About Autodesk We are a software company that make Revit Content Type Raw Data Response Code Header list Data can be HTML, JSON, XML, Binary or other formats

© 2011 Autodesk REST APIs  URL and the Verb combine to act as a sort of method call  URL identifies what you what resource you are using  Verb specifies what action to take  Same URL with different verbs can be totally different  GET returns the resourcehttp://servername/resource  DELETE deletes ithttp://servername/resource  Big difference!  Querystring can be used to supply extra parameters  DELETE could rename to newNamehttp://servername/resource?newObjectName=newName  Leave out Querystring to delete

© 2011 Autodesk How to access REST services  Standard HTTP request  Use anything capable of HTTP requests  C# and VB have System.Net.HttpWebRequest  Jquery(Javascript) has $.ajax()

© 2011 Autodesk Why REST?  Many advantages  Hosted on a web server  Use them with any programming language capable of a web request  Consistent and self describing interface  Very popular on the web  Flickr is well known for having a good REST API

© 2011 Autodesk More on REST Further Resources  Nettuts+ -  O’Reilly RESTful Web Services Book -  Probably more for people making RESTful API’s View HTTP requests  Firebug in Firefox  F12 in Chrome and IE then click ‘Network’  Fiddler2 ( lets you view ALL request on your systemhttp://fiddler2.com  Very useful for testing your Revit Server API access

© 2011 Autodesk JSON  JavaScript Object Notation  Alternative to XML/HTML for displaying data  Easy to use with Jquery  Requires parsing in.NET { "Path": string, "Items": [ { "Comment": string, "Date": DateTime, "User": string, "VersionNumber": int, "ModelSize": int } ] }

© 2011 Autodesk The Revit Server REST API  Specification in SDK  Base URL:  Required headers to identify yourself when making requests  Information Querying APIs  Get server properties, folder contents, directory info, model save history  Data Managing APIs  Lock models/folders, delete locks  Create, delete, move, rename and copy folders/models

© 2011 Autodesk Quick Examples  GET /{folderPath}/contents  Returns a JSON object listing the models and folders  For example GET  To get the contents of the parent dir use a space GET /contents  PUT /{objectPath}/lock  Locks the specified folder or model (object can be either)  For example PUT /AUJob|Subfolder|Model_01.rvt/lock  Notice that | is used instead of the familiar / in the path  This is because the / would form part of the URL

© 2011 Autodesk What can I use it for?

© 2011 Autodesk HTML Server Admin  Existing interface is Silverlight based  This is ok, but requires installation and won’t work on mobile  Revit Server API gives us same functionality  We can use this API to build a HTML replica  With a little help from JQuery

© 2011 Autodesk Demo

© 2011 Autodesk Interface with existing system  A more likely scenario is linking with an existing system  For example, a project records system  User enters project details, and it is stored in a database  Want to make a Revit Server folder automatically for new projects

© 2011 Autodesk Demo

© 2011 Autodesk Revit Server Command Line Utilities

© 2011 Autodesk Revit Server Command Line Utilities  2 similarly named utilities  RevitServerCommand  Allows you to lock/unlock models/folders  Already seen 2 other ways of doing this  Ships in Revit Server folder  RevitServerToolCommand  Ships in the Revit Directory on all users PC’s  Lets you create local files from a Revit Server

© 2011 Autodesk RevitServerToolCommand  Create local files  Located under Revit Dir  Program\RevitServerToolCommand

© 2011 Autodesk Opportunities

© 2011 Autodesk Opportunities  Already seen some potential use cases, but more to ponder…  Revit Server has all of your files stored on your servers  This data is replicated automatically to all locations  Quick access to Revit files on any Revit Server  Ability to lock and unlock files

© 2011 Autodesk Revit Remote Boot  Last example of what you could do with these API’s  This tool lets you run some code on a model at scheduled times  Very fragile, prototype only  (Revit isn’t meant for this kind of thing)  May give you ideas for your own tools

© 2011 Autodesk Demo

© 2011 Autodesk Conclusion  Revit Server is still a young product  But already has a great API  REST lets you access from anywhere  Command line tools provide even more access  Plenty of things you could make  Contact me via or

© 2011 Autodesk Autodesk, AutoCAD* [*if/when mentioned in the pertinent material, followed by an alphabetical list of all other trademarks mentioned in the material] are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document. © 2011 Autodesk, Inc. All rights reserved.