Lab5 Forge API Intro – Get Properties & Search

(This is a continuation from the previous post: Lab4 “Forge API Web Intro JS”)

This post was prompted by an inquiry about accessing properties of Revit model using Forge API. He left a comment saying that he followed my tutorial and was able to view the uploaded model successfully. So let’s take Forge API Intro Lab4 as a starting point and build on top of it. In this post, we are going to add two functionalities that allow you to:

  • Select an object and obtain its properties
  • Search the model for a given string and isolate them in the viewer

Continue reading “Lab5 Forge API Intro – Get Properties & Search”

Advertisements

Lab4 Forge API Web Intro JS

(This is a continuation from the previous post: Lab3 “Forge API Web Intro”)

Now that we have a model uploaded to our bucket and translated for viewing, the final piece of functionality that we want to add is an ability to view the uploaded model in a html page. To do this, Forge API provides a client side JavaScript API.

In this lab, we make a basic viewer, which is based on Basic Viewer Step-by-Step Tutorial and is slightly modified to put it in the context of our lab and make it easier to built on top of what we have built in the previous lab.

Continue reading “Lab4 Forge API Web Intro JS”

Lab3 Forge API Web Intro

(This is a continuation from the previous post: Lab2 “Forge API Intro”)

In the previous lab, we wrote a desktop client application that creates your own custom storage in the cloud, uploads a file to that storage, and translates it for viewing. Those core functions that we wrote to make REST calls can be easily included in your authoring tools, such as Revit and AutoCAD. Next, we write a simple ASP.NET web application. For now, we keep the basic functionality same as Lab2 (i.e., authenticate, create a bucket, upload a file, and translate). Later in the Lab4, we will add JavaScript layer to embed a viewer.

The good news is that we have written the functions to make the Forge web services REST calls in a way that we can simply reuse them. In the sample project, we put the common Forge REST calls under Forge folder. You can simply copy the folder to your web application if you have followed the labs 1 and 2.

Continue reading “Lab3 Forge API Web Intro”

Lab2 Forge API Intro

(This is a continuation from the previous post: Lab1 “Hello Forge World”)

In Lab1, we learned how to obtain an access token and got familiarized ourselves with the basics of REST call. Let’s move on, and create our own storage, upload a model and make it ready for viewing.

To achieve this, we use the following services:

where oss stands for Object Storage Service.

Continue reading “Lab2 Forge API Intro”

Lab1 Hello Forge World

(This is a continuation from the previous post: Forge API Intro Labs Overview)

In this lab, we learn the first step into the Forge world and the basic of REST API call. This is a simple Windows Forms application written in C#. The Forge services we use in this lab is POST authenticate, which is a call to obtain a two-legged authentication token required for subsequent calls.

To make REST calls, we use a library called RestSharp. We chose this as the syntax of RestSharp nicely reflects the semantics of REST call and makes it easy to read the code even if you aren’t writing in C#. Please refer to this post about how to include RestSharp library to your project.

Continue reading “Lab1 Hello Forge World”

Forge API Intro Labs Overview

In the next few posts, I’m going to write about the introduction to Forge API. This is a revised version of what I have done as “View and Data API Intro Labs” a few years back, which was unfortunately outdated now. The goal of the labs is to learn the basic of Forge API through building a simple application to view a design model in a web browser. In the back of my mind, I’m also thinking this as a preparation for Design Automation for Revit (DA4R), which is expected to come near future. For example, to use DA4R, the developer will need to use authentication API. He/she may want to take a Revit file from A360 or BIM 360 and display the result in the viewer. I hope Revit add-on developers who are new to Forge API will find these labs easy to digest.

Autodesk Forge is a collection of web services and various platform technologies that allows the third party developers to integrate with Autodesk’s cloud-based products as well as to build their own applications. They are technologies that Autodesk internally uses to build its own services as well.

Continue reading “Forge API Intro Labs Overview”

Language Support for BIM 360 Docs Web

Not directly related to API, but my colleague in France recently asked me about Japanese language support for BIM 360 Docs. I knew BIM 360 Docs supports Japanese since last year or so. I remember testing it at that time. Unfortunately, I have forgotten how I did that last year. I ended up spending a little time exploring it myself (once again) to make it work. So here it is, I decided to make a note of it this time. It might get handy for people who support in more than one language like myself.

First, the product documentation is here. According to the documentation, currently BIM 360 Docs web supports in the following languages: English, German, French, Spanish, Brazilian Portuguese, Chinese, and Japanese.

Continue reading “Language Support for BIM 360 Docs Web”

Forge DevCon at AU 2017 Las Vegas

Have you registered for Forge DevCon at AU 2017 Las Vegas?  If you haven’t and planning to come, here are a few pointers to register. (It may not be obvious how to add DevCon afterward.):

  1. Register to Forge DevCon through the AU registration page.
    • Combined ticket includes Forge DevCon – $2,175
    • Forge DevCon standalone ticket – $295
      (AU is very expensive, isn’t it?)
  2. If you already have a ticket to AU and want to add Forge DevCon.
    • You can add to the AU full price ticket – $95
    • Call customer service at call 888-371-1722 (toll-free in the United States) or 415-446-7717.
    • Or send an email to customer service autodeskuniversity@autodeskevents.com.
      They will add for you.

Continue reading “Forge DevCon at AU 2017 Las Vegas”

BIM 360 Docs Account for Development

As we finish the BIM 360 focused webinars, we are receiving requests for BIM 360 Docs account for development. I talked about it in the second webinar. Here is the instruction to make it easy to find by googling.

  • ADN members – if you are an ADN member, you can request a developer version of license from the ADN extranet: adn.autodesk.io >> Development Software and Web Services Request Form.
  • Paid account owners – If you already have a paid BIM 360 Docs account, you can use your own account. (If you do not see “Apps and Integration” tab under SETTINGS tab of Account Admin module, you don’t have an access to API. You will need to request to activate it. Please refer to this post for where to make a request.)
  • If neither of above applies to you, you have two choices:

Continue reading “BIM 360 Docs Account for Development”

Materials from BIM 360 Online Hackathon Webinars

We just finished BIM 360 focused webinar series. The webinars were a part of BIM 360 Hackathon, the online event lasting for three months from August 1st to October 31st. The event is to kick off the opening of the new App Store for BIM 360. (Yes, we have App Store for BIM 360 now!) Currently, the store shelf only has apps that are “home grown”. The idea of the webinars is to help developers jump start implementing web service applications using BIM 360 and Forge.

If you missed the webinars, no worries. The webinars were recorded and are posted to the YouTube. I’m adding the links to the recording along with the presentation slides below.

Continue reading “Materials from BIM 360 Online Hackathon Webinars”