Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

View, Upload & Translate models: Desktop sample tool (.NET) to manage bucket, objects and translations (extract SVF)

License

Notifications You must be signed in to change notification settings

Autodesk-Forge/forge-bucketsmanager-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop tool to manage buckets and objects

Platforms .NET CefSharp License

Data-Management Model-Derivative Viewer

Advanced

Demonstration

This sample is a Windows desktop application that lists all buckets for a given Forge Client ID & Secret, allow creating new buckets, upload new files, translate and delete. Allow download of SVF for offline viewing. Simple JavaScript for testing code. It is intended as tool for developers.

Thumbnail

thumbnail

Setup

Prerequisites

  1. Visual Studio: Either Community (Windows) or Code (Windows, MacOS).
  2. CefSharp: Chromium based browser control for .NET apps
  3. .NET Framework basic knowledge with C#

Running locally

For using this sample, you need an Autodesk developer credentials. Visit the Forge Developer Portal, sign up for an account, then create an app.

Download the repository, open bucket.manager.sln Solution on Visual Studio. The build process should download the required packages (Autodesk.Forge and dependencies). Run the project. At the form, enter your Client ID & Secret, click on Authenticate button. The app will obtain a 2-legged token and list buckets and files. After translating, files should be Viewable.

Features

This sample app includes a few features:

Download SVF

After creating a bucket and uploading an object, translate the file. When finish, open on the Viewer. Click on Download SVF button and select a destination folder. The HTML to view the file needs to point to the .svf file, usually a 0.SVF under a folder with the same name of the viewable.

Running JavaScript code

The CefSharp control allow .EvaluateScriptAsync() for executing JavaScript code, which can be used for quick testing some code. Load a model on the Viewer, then click on JavaScript button. Type, paste or open a .js file, then click on Run (or Ctrl+R) to run, the result will show on the bottom text area and (if applicable) at the DevTools Console). The video demonstrate it:

JavaScript run demo

Further Reading

Blog:

  • Download SVG: details on how to download the SVF for offline viewing.

Samples:

Tips & Tricks

The CEF Sharp library should work on AnyCPU, but this sample uses only x64 version. This issue entry explains how to adjust it, if needed.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Augusto Goncalves @augustomaia, Forge Partner Development

About

View, Upload & Translate models: Desktop sample tool (.NET) to manage bucket, objects and translations (extract SVF)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •