Publish the model to ACC?

Is there a way to do this:

Through Dynamo?

A quick search for the word ‘Publish’ in the RevitAPI docs makes it appear that the likely answer is no. Generally if you want to automate ACC procedures it’s time to learn APS/Forge at that point.

The only thing I’ve seen that you can do with ACC related activities is reload an ACC hosted linked model, but you need to know the guid of the model and link in order to do so (which Dynamo cannot get naturally).

1 Like

This is doable. You just have to implement the APS code in Dynamo.

As a start, there is a sample APS app for publishing can be found in the tutorials here: APIs | Autodesk Platform Services

Once the right methods are implemented (up to step 6 at least, maybe step 7), you can build a Dynamo node to call the same methods in the same sequence as the APS automation just like you call the Revit API now.

A few notes:

  1. This carries a token cost to this if you abuse it. So don’t.
  2. This also requires an authentication token which is unique to you/your company, so sharing gets exceptionally difficulty.
  3. Points 1 and 2 above are a big part of why there isn’t a community solution here.
  4. It’s likely there are better ways to trigger the publishing without getting Dynamo involved - ACC, Revit UI, etc. as Dynamo can be heavy and just acting as a fancy button here.
  5. Publishing can take awhile so you might want to 'send the command, confirm it was sent, and then stop executing in the node (waiting for publish to complete will lock up Dynamo for awhile) and send an email or otherwise notify you from APS instead of in Dynamo.
2 Likes

The good way to do this is using APS like @jacob.small prefer, you can using rest api to able to embed inside dynamo script. But you should care about the security issues when try to be done it in Dynamo. My prefer is create authentication protect first when you try to execute the rest api

And then you can go thought into tutorial publish model command : APIs | Autodesk Platform Services

2 Likes