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

From desktop to the cloud with forge

  • Upload
    fpm2015

  • View
    96

  • Download
    0

Embed Size (px)

Citation preview

Page 1: From desktop to the cloud with forge

Fernando Malard

CTO – ofcdesk, llc

From desktop to the cloud with Forge

Page 2: 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: From desktop to the cloud with forge

Introduction

Page 4: From desktop to the cloud with forge

This class will introduce the Forge platform starting withbusiness aspects, paradigm shift, cloud concepts andthe future of Autodesk cloud platform strategy. We willintroduce and present technical challenges with webprogramming, how to overcome them and take fulladvantage of cloud resources leveraging yourbusiness. We will then present some simple yetrepresentative code samples helping you to get startedwith the Forge platform through View & Data andAutoCAD I/O services.

Class summary

Page 5: From desktop to the cloud with forge

From Desktop to the Cloud

Page 6: From desktop to the cloud with forge

“It’s clear now that while organizations may

have come to the cloud to reduce costs, it’s not

why they stay. The true potential of cloud lies

in an organization’s ability to leverage this agile

delivery model to transform the business.”

Rick Wright, Principal and Global Cloud Enablement Leader

at KPMG

From Desktop to the Cloud – Agile delivery

Page 7: From desktop to the cloud with forge

From Desktop to the Cloud - Usage

*KPMG: 2014 Cloud Survey Report

Page 8: From desktop to the cloud with forge

From Desktop to the Cloud – Improvements / Challenges

*KPMG: 2014 Cloud Survey Report

Page 9: 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: 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: 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: From desktop to the cloud with forge

From Desktop to the Cloud – Debugging / testing

• Desktop debugging

• Web debugging

• Browser cache…Refresh!

Page 13: From desktop to the cloud with forge

Cloud resources

Page 14: 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: From desktop to the cloud with forge

• Amazon AWS

• Microsoft Azure

Cloud resources - Servers

Page 16: From desktop to the cloud with forge

• Overall cost reduction

• T.C.O. – The IT guy?

Cloud resources – Storage, CPU, costs

Page 17: From desktop to the cloud with forge

• New storage technologies – Project Natick

Cloud resources – Storage, CPU, costs

Page 18: From desktop to the cloud with forge

Autodesk Forge

Page 19: 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: 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: 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: 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: 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: 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: 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: From desktop to the cloud with forge

Autodesk Forge – Use case / ofcdesk Connect

Page 27: From desktop to the cloud with forge

View&Data and AutoCAD I/O

Page 28: 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: 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: From desktop to the cloud with forge

Autodesk Forge – AutoCAD I/O

AutoCAD I/O

Your

Cloud

AppPackage 1

AppPackage 2

AppPackage 3

Activity A

Activity B

Activity C

WorkItem A

WorkItem B

WorkItem C

Page 31: 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: 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: From desktop to the cloud with forge

Autodesk Forge – View&Data

View & Data

Your

Cloud

Bucket

Viewing ServicesWebGL

Viewer

File Upload

URN result

Page 34: 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: From desktop to the cloud with forge

Amazon

S3

Autodesk Forge - SampleAutoCAD I/O

Your

Cloud

View & Data

forgedevcon2016

Viewing Services

Upload processed DWG

WebGL

Viewer

forge2016CreateCloset

PlotToPNG

Bla

nkIs

o.d

wg

UR

Lprocessed DWG

PNG image

Download URN

DW

G

PN

G

Page 36: 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: From desktop to the cloud with forge

Conclusion

Page 38: 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: From desktop to the cloud with forge

Get Started!

Developer.Autodesk.com

Forge.Autodesk.com

@AutodeskForge

Facebook.com/adskForge

Page 40: From desktop to the cloud with forge