Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

The problem at my end was that we still use Revit 2022 and Data exchange models can be created from Revit 2023+. Also, I skipped the most important step of actually creating a data exchange model in the ACC.
Initially, I thought that every model in the ACC is readily available to grab with that code and imported into Inventor.

Anyway, when I tested with an actual data exchange model and the code works fine.