GithubHelp home page GithubHelp logo

engworks-dev / forge-bucketsmanager-desktop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk-forge/forge-bucketsmanager-desktop

0.0 1.0 0.0 16.5 MB

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

License: MIT License

C# 94.98% HTML 5.02%

forge-bucketsmanager-desktop's Introduction

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

forge-bucketsmanager-desktop's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.