Git Product home page Git Product logo

design.automation-python-tutorial's Introduction

Design Automation API sample in Python

(Formely I/O).

ver Design Automation Platforms Python License

Description

This is a Python sample code for Design Automation API (v2). It is a very short demo at this moment which shows getting token and checking the status of one existing workitem only. More functions will be added in the future.

Thumbnail

thumbnail

Setup

Dependencies

  • Download Python. The code can work with old version such as 2.7, but it is recommended to use the new version.

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate subscription and create an app at this tutorial. Make sure to select the service Design Automation.
  2. Make a note with the credentials (client id and client secret) of the app.
  3. Follow the steps on API Basic to create a test codes with full workflow: create activity, create workitem, create app package (if needed). Make a note with the workitem id. Another choice is to check some samples (prefix with "design automation") on Autodesk-Forge Github Repository such as design.automation-workflow-winform-sample. Build the sample and get a workitem id.

Running locally

  1. run acadio.py with the credentials and workitem id like:
    • acad-da.py --client_id [you client id] --client_secret [your client secret] --workitem_id [your work item id]
  1. wait for the response about work item status. It will also download the log file

thumbnail

Further Reading

Limitation

  • as of writing, only AutoCAD Design Automation is released. While the skeleton of this sample could apply with other products (such as Revit, Inventor) after replacing the endpoints.

License

These samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.

design.automation-python-tutorial's People

Contributors

augustogoncalves avatar jaylimboonkiat avatar kimekeunkyung avatar szilvaa avatar xiaodongliang avatar

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.