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

40
Fernando Malard CTO – ofcdesk, llc From desktop to the cloud with Forge

Upload: autodesk

Post on 16-Apr-2017

235 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Fernando MalardCTO – ofcdesk, llc

From desktop to the cloud with Forge

Page 2: Forge - DevCon 2016: 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

Page 3: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Introduction

Page 4: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 5: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud

Page 6: Forge - DevCon 2016: From Desktop to the Cloud with Forge

“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

Page 7: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud - Usage

*KPMG:2014CloudSurvey Report

Page 8: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud – Improvements / Challenges

*KPMG:2014CloudSurvey Report

Page 9: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 10: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud – Development

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

Page 11: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud – Data security

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

Page 12: Forge - DevCon 2016: From Desktop to the Cloud with Forge

From Desktop to the Cloud – Debugging / testing

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

Page 13: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Cloud resources

Page 14: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Cloud resources - Computing

Page 15: Forge - DevCon 2016: From Desktop to the Cloud with Forge

• Amazon AWS• Microsoft Azure

Cloud resources - Servers

Page 16: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Cloud resources – Storage, CPU, costs

Page 17: Forge - DevCon 2016: From Desktop to the Cloud with Forge

• New storage technologies – Project Natick

Cloud resources – Storage, CPU, costs

Page 18: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Autodesk Forge

Page 19: Forge - DevCon 2016: From Desktop to the Cloud with 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

Page 20: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Autodesk Forge

Page 21: Forge - DevCon 2016: From Desktop to the Cloud with 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

Page 22: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Autodesk Forge - Technologies

Page 23: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

server• Three-legged workflow*• Scoping*

Autodesk Forge - Technologies

Page 24: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 25: Forge - DevCon 2016: From Desktop to the Cloud with Forge

The solution: Autodesk Forge

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

Autodesk Forge – Use case / ofcdesk Connect

Page 26: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Autodesk Forge – Use case / ofcdesk Connect

Page 27: Forge - DevCon 2016: From Desktop to the Cloud with Forge

View&Data and AutoCAD I/O

Page 28: Forge - DevCon 2016: From Desktop to the Cloud with Forge

• 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

Page 29: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 30: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 31: Forge - DevCon 2016: From Desktop to the Cloud with Forge

• 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

Page 32: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 33: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Autodesk Forge – View&Data

View & Data

YourCloud

Bucket

Viewing ServicesWebGLViewer

File Upload

URN result

Page 34: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 35: Forge - DevCon 2016: From Desktop to the Cloud with Forge

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

Page 36: Forge - DevCon 2016: From Desktop to the Cloud with Forge

GIT:

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

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

Autodesk Forge – Sample

Page 37: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Conclusion

Page 38: Forge - DevCon 2016: From Desktop to the Cloud with Forge

• 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

Page 39: Forge - DevCon 2016: From Desktop to the Cloud with Forge

Get Started!

Developer.Autodesk.comForge.Autodesk.com

@AutodeskForgeFacebook.com/adskForge

Page 40: Forge - DevCon 2016: From Desktop to the Cloud with Forge