API for BIM Interoperability Tools

API for BIM Interoperability Tools

hennadii_k
Participant Participant
1,000 Views
5 Replies
Message 1 of 6

API for BIM Interoperability Tools

hennadii_k
Participant
Participant

Hi everyone,

 

I'd like to automate some workflow in Revit which involves a few steps from BIM Interoperability Tools:

hkrutVD5MR_0-1654510397109.png

  • Classification Manager:
    • Set
    • Assign
  • COBie Extension:
    • Setup Families
    • Setup Project
    • Contacts
    • Import
    • Update
    • Create Spreadsheet

Is there any API or any other way how to deal with these features through C# code?

0 Likes
1,001 Views
5 Replies
Replies (5)
Message 2 of 6

jeremy_tammik
Alumni
Alumni

If the screen snapshot that you show is from the Revit ribbon, then you can at least launch each of those commands programmatically using the Revit PostCommand API:

    

https://www.revitapidocs.com/2023/b0df464d-1733-ea9e-ac40-399fa9c9a037.htm

   

Here are some hints on using that:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.3

 

Unfortunately, the commands are launched just as they are, with their standard manual user interface, and no possibility to programmatically supply the required user input, so the automation potential with that approach is a bit limited. Depending on what exactly you wish to achieve, this may satisfy your needs.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 6

JasonKunkel
Collaborator
Collaborator

Only the Model Checker has an available API, which, unfortunately, is the one tool you did not need.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
0 Likes
Message 4 of 6

ivo.lafeber
Advocate
Advocate

the model checker is the one I want to use, which dll do we have to use for the model checker api ? 

0 Likes
Message 5 of 6

jeremy_tammik
Alumni
Alumni

I see a number of hits searching this forum for "model checker API". Have you tried doing so yourself?

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 6 of 6

ivo.lafeber
Advocate
Advocate

dumb of me, sorry 👍