Coder Social home page Coder Social logo

ehtick / design.automation-csharp-revit.local.debug.tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk-forge/design.automation-csharp-revit.local.debug.tool

0.0 0.0 0.0 1.4 MB

Design Automation for Revit Debug Tool:Run your Design Automation for Revit plugins locally with this tool

License: Other

C# 100.00%

design.automation-csharp-revit.local.debug.tool's Introduction

Design Automation for Revit - Local debug tool

Platforms .NET Revit

Description

DesignAutomationHandler is a Revit addin that allows users to run and debug their Design Automation for Revit application locally using desktop Revit.

Demonstration

See step-by-step video

Setup

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate your subscription, and create an app at this tutorial.
  2. Visual Studio: 2019 or newer
  3. .NET Framework basic knowledge with C#
  4. Revit 2019: required for compiling plugin changes

Compile and Load on Revit

  1. Build the solution DesignAutomationHandler, compiling DesignAutomationHandler for Revit 2018 (DesignAutomationHandler2018), Revit 2019 (DesignAutomationHandler2019), Revit 2020 (DesignAutomationHandler2020), Revit 2021 (DesignAutomationHandler2021), Revit 2022 (DesignAutomationHandler2022), Revit 2023 (DesignAutomationHandler2023), and Revit 2024 (DesignAutomationHandler2024)

Design Automation for Revit currently supports Revit 2018, 2019, 2020, 2021, 2022, 2023, and 2024.

  1. Copy/paste the DesignAutomationHandler.addin into the "Addins" folder C:\ProgramData\Autodesk\Revit\Addins\XXXX\, where XXXX is the Revit version (e.g. 2018, 2019, 2020, 2021, 2022, 2023, 2024) you intend to run.

  2. Copy/paste the .addin file of your Design Automation for Revit plugin into the same folder C:\ProgramData\Autodesk\Revit\Addins\XXXX\.

DesignAutomationHandler doesn't support local testing/debugging of more than one addin at a time.

Revit needs the DesignAutomationBridge.dll to be in the same folder as your addin's dlls.

Usage

Starting Revit:

  • If your addin requires an input Revit model at startup, then open the file in Revit before running the addin or specify the file using a startup argument.

If you have json parameter defined to run the WorkItem in Design Automation, you can save the json payload as a json file in the same folder as your input Revit file.

For example: if CountItParams is the name of the parameter defined in the your Design Automation Activity, then you should create a file CountItParams.json with contents {"walls": false,"floors": true,"doors": true,"windows": true} and save it to the folder which contains your input Revit model.

  • In the Revit ribbon, navigate to the Add-Ins tab, then click External Tools, and click the DesignAutomationHandler command. Your addin will by executed! A dialog will pop-up to report the execution result. If the execution was successful, the dialog will indicate where you can find the output(s). They go to the folder which contained your input files.

  • If your plugin doesn't require any input files, start Revit and run the DesignAutomationHandler command without any additional setup. If you have json parameter defined to run the WorkItem in Design Automation, a dialog will instruct you where to put your json file.

You can rerun the same addin without restarting Revit.

To run different addin, repeat the setup steps above.

Currently, the DesignAutomationHandler doesn't support multiple input files. (This feature is supported by Design Automation on Forge.)

Further Reading

Documentation:

Desktop APIs:

Blog articles:

License

Please see the LICENSE file for full details.

Written by

Lijuan Zhu and Ashwin Shivashankar

design.automation-csharp-revit.local.debug.tool's People

Contributors

anshivashankar avatar augustogoncalves avatar evgeniidorosh avatar kadamakash avatar zhuliice 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.