Coder Social home page Coder Social logo

ricaun-io / revitaddin.da.tester Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 5.22 MB

RevitAddin Tester for Design Automation (Forge)

License: MIT License

C# 72.50% Batchfile 1.24% PowerShell 14.83% Shell 11.42%
autodesk-forge autodesk-revit forge-designautomation revit revitaddin revitapi

revitaddin.da.tester's Introduction

RevitAddin.DA.Tester

Revit +2019 Visual Studio 2022 Nuke License MIT Build

Revit Addin project to run in Design Automation with some simple file input.json and output.json.

Input / Output

├── ...
├── input.json
├── output.json
└── ...
public class InputModel
{
    public string Text { get; set; }
    public int Sleep { get; set; }
}
public class OutputModel
{
    public string VersionName { get; set; }
    public string VersionBuild { get; set; }
    public DateTime TimeStart { get; set; } = DateTime.UtcNow;
    public string Text { get; set; }
}

Installation

License

This project is licensed under the MIT Licence.


Do you like this project? Please star this project on GitHub!

revitaddin.da.tester's People

Contributors

ricaun avatar

Watchers

 avatar

Forkers

veabim

revitaddin.da.tester's Issues

Design Automation for Revit ignores `PackageContents.xml` configuration.

By default Design Automation for Revit selects the first ComponentEntry in the PackageContents.xml ignoring the version defined in the RuntimeRequirements.

In the example below, the version 2021 of the .addin is loaded by default even if is selected the engine for Revit 2025.

<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="Revit" Name="RevitAddin.DA.Tester" AppVersion="1.3.0" ProductType="Application" ProductCode="7c324916-9f8d-43b0-b226-da67d2504393">
  <Components Description="Revit 2021">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2021" SeriesMax="R2021" />
    <ComponentEntry AppName="RevitAddin.DA.Tester" ModuleName=".\Contents\RevitAddin.DA.Tester\1.3.0-beta.1\2021\RevitAddin.DA.Tester.addin" />
  </Components>
  <Components Description="Revit 2025">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2025" SeriesMax="R2025" />
    <ComponentEntry AppName="RevitAddin.DA.Tester" ModuleName=".\Contents\RevitAddin.DA.Tester\1.3.0-beta.1\2025\RevitAddin.DA.Tester.addin" />
  </Components>
</ApplicationPackage>

A reusable solution would be to first search for the right version of the engine in the bundle. And if the version does not exist in the PackageContents.xml, select the first one like in the current version of the DA4R Revit 2025 (RVTDA 04-04-2024).

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.