forge - devcon 2016: from desktop to the cloud with forge

Post on 16-Apr-2017

219 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Fernando MalardCTO – ofcdesk, llc

From desktop to the cloud with Forge

• Introduction• From Desktop to the Cloud• Cloud resources• Autodesk Forge• View&Data and AutoCAD I/O• Conclusion

Agenda

Introduction

This class will introduce the Forge platform starting withbusiness aspects, paradigm shift, cloud concepts and thefuture of Autodesk cloud platform strategy. We will introduceand present technical challenges with web programming,how to overcome them and take full advantage of cloudresources leveraging your business. We will then presentsome simple yet representative code samples helping you toget started with the Forge platform through View & Data andAutoCAD I/O services.

Class summary

From Desktop to the Cloud

“It’s clear now that while organizations mayhave come to the cloud to reduce costs, it’s notwhy they stay. The true potential of cloud lies

in an organization’s ability to leverage this agiledelivery model to transform the business.”

Rick Wright, Principal and Global Cloud Enablement Leader at KPMG

From Desktop to the Cloud – Agile delivery

From Desktop to the Cloud - Usage

*KPMG:2014CloudSurvey Report

From Desktop to the Cloud – Improvements / Challenges

*KPMG:2014CloudSurvey Report

From Desktop to the Cloud – Facts

Desktop• Download & install• High resource demand• Security and setup time• High initial investment• Poor file/data sharing• Vulnerable information• Per user license• Complex backups

Cloud• Fast disaster recovery• Centralized maintenance• Low initial investment• Enhances teamwork• Centralized file storage• Accessible to small businesses

From Desktop to the Cloud – Development

• New languages and paradigms• Libraries and packages• Client-server architecture

From Desktop to the Cloud – Data security

• Access control• Token based authentication• Encrypted user data storage

From Desktop to the Cloud – Debugging / testing

• Desktop debugging• Web debugging• Browser cache…Refresh!

Cloud resources

Cloud computing isn’t a new thing. Project SETI@home was launched in 1999.

Cloud resources - Computing

• Amazon AWS• Microsoft Azure

Cloud resources - Servers

• Overall cost reduction• T.C.O. – The IT guy?

Cloud resources – Storage, CPU, costs

• New storage technologies – Project Natick

Cloud resources – Storage, CPU, costs

Autodesk Forge

• Powerful core engines• Consumed via web services• Zero-client installs• Web based interfaces• Major Browsers supported• WebGL for viewing• JavaScript for client programming

Autodesk Forge

• http://forge.autodesk.com• Design (AutoCAD I/O)• Visualize (View&Data)• Collaborate• Use• Make

Autodesk Forge

• REST = Representational State Transfer• Based on resources• Used for cloud solutions through web services• Web services calls: GET, PUT, POST and DELETE• Work with HTTP responses• Uniform Resource Identifier (URI)• Uniform Resource Locator (URL)• Uniform Resource Name (URN)

Autodesk Forge - Technologies

• OData = Open Data Protocol• Simplifies business logic• Easy access to data and services from any client

Autodesk Forge - Technologies

• OAuth = Open Standard for Authorization• Based on access tokens issued• Uses an authorization

server• Three-legged workflow*• Scoping*

Autodesk Forge - Technologies

The challenge:

• Product specification tool• Accessible and easy to use• Avoid desktop installation• Rich zero-client 3D viewer• Integrated with custom data

Autodesk Forge – Use case / ofcdesk Connect

The solution: Autodesk Forge

• Simple web interface• No desktop software• No installation• WebGL 3D viewer• Dedicated servers

Autodesk Forge – Use case / ofcdesk Connect

Autodesk Forge – Use case / ofcdesk Connect

View&Data and AutoCAD I/O

• New name: Design Automation API• Create, edit or query DWG files• Save DWG files to other formats• Run AutoCAD native commands (non-UI)• Simplify the DWG manipulation process• Scalable resources (run at Autodesk cloud)• Extensible with apps (CRX, DBX, LSP and DLL)

Autodesk Forge – AutoCAD I/O

Abstractions:• AppPackage: Extensions in DBX, CRX, LSP or DLL

modules, written in AutoLISP, C++ or .NET• Activity: Pre-configured action, in AutoCAD script

language, that can refer to one or more AppPackages• WorkItem: Represents each execution of your Activities

(actions) providing input and output parameter values

Autodesk Forge – AutoCAD I/O

Autodesk Forge – AutoCAD I/O

AutoCAD I/O

YourCloud

AppPackage 1

AppPackage 2

AppPackage 3

Activity A

Activity B

Activity C

WorkItem A

WorkItem B

WorkItem C

• New name: Viewer API• Upload models via REST API• Return a viewing stream• Access to model data using JavaScript• Rich 2D and 3D models into the web browser• No plug-in, runs in Chrome, Safari, IE11, Firefox• More than 60 design file formats

Autodesk Forge – View&Data

Abstractions and concepts:

• Bucket: It is a storage folder where you upload the input files. Can be Transient, Temporary or Persistent

• OSS: Object Storage Service is responsible for storing and maintaining, secured by OAuth 2.0, uploaded files

• Viewing Services: Translation service with the input URN then return other URN to stream the resulting model

Autodesk Forge – View&Data

Autodesk Forge – View&Data

View & Data

YourCloud

Bucket

Viewing ServicesWebGLViewer

File Upload

URN result

Workflow:

• Upload empty DWG to AWS and receive URL• Collect user input data from a web page• Submit URL and script to AutoCAD I/O service• Receive processed DWG• Submit DWG to View&Data service• Receive URN for viewing

Autodesk Forge – Sample

AmazonS3

Autodesk Forge - SampleAutoCAD I/O

YourCloud

View & Data

forgedevcon2016

Viewing Services

Upload processed DWG

WebGLViewer

forge2016CreateCloset

PlotToPNG

Blan

kIso

.dw

g

UR

L

processed DWG

PNG image

Download URN

DW

G

PNG

GIT:

https://github.com/Developer-Autodesk/

/design.automation-workflow-winform-sample/workflow-aspdotnet-autocad.io/library-dotnet-autocad.io

Autodesk Forge – Sample

Conclusion

• Cloud is a business evolution• Scalable, ubiquitous, reliable• Hide complexity from users• Reduce cost of ownership and maintenance• Forge APIs available as web services• Bring the power of desktop apps to the cloud• Enrich cloud solutions

Conclusion

Get Started!

Developer.Autodesk.comForge.Autodesk.com

@AutodeskForgeFacebook.com/adskForge

top related