Import drafting views from cloud model

Is it currently possible to use dynamo to import a list of drafting views from a cloud model? I’ve looked on the forum and googled the process and not having any luck. Any direction on how to start this connection with dynamo and the cloud would be greatly appreciated.

Sure, I don’t see why not. The hard part is getting the cloud path of your cloud model or cloud workshared model, and ensuring users have access thereto. If you’re not using the same model 100% of the time you’ll need a way to get the users to direct to a model and parse the cloud path therefrom which is a lot more work.

My advice is to set it to work from one open file to the active file first. Then move to a closed file on the local disc to the active file. Finally move to a cloud model to the active file.

1 Like

You could look at my recent post here and copy from one file to another rather than save out to C:\temp

Also review the ModelPathUtils class in the API docs

Thanks Jacob

I’ve tested a script that opens a revit file on my local computer in the background and imports drafting views to an active model and had successful results.

When accessing the cloud model to give the path to Rhythm’s “Applications.OpenDocumentFile” node is opening the file from windows explorer as shown in image below a stable option?

image

Thanks Mike

I’m not as experienced in python so I’m going to try dynamo first. Thanks for the suggestion and will explore as an alternate if I can’t get success with this.

Desktop connector files aren’t actually files, but information on getting the file. As such it might not work as you would like.

What is the error on the node from rhythm?

Reading this below post. Is it still advised “DO NOT attempt to open a cloud workshared project via desktop connector” ? The below post with opening ACC in the background is what I’m trying to achieve.

It errored due to not giving it data from Data Shapes UI. I was in a hurry to respond.

If the model is workshared, you don’t want to open it that way.

The cloud/acc model would not be for users to make edits to. They would only download content from the cloud model to their active model.

I would need to invite the user to the model. Set permissions to the model access and then users could download content via dynamo by connecting with Autodesk docs?

Thanks again for the help with this.

Like most workflows related to ACC, I suspect the proper solution here will be through APS/forge.

These queries are becoming more prevalent as we move to cloud, and orgs should be investing in at least one forge capable developer to keep up in the space I think.

2 Likes

It does t matter if they are only viewing - if it is workshared this will be problematic.

If you work with the published version than DTX can help resolve stuff, but as @GavinCrump mentioned this is more suited as an Autodesk Platform Services tool than a Dynamo one.

But since the GUIDs for the project and object are the same for all users in all situations you can hard code them and generate a model path for, and work with the file from there. Note that the Rhythm node won’t work as it requires you have a file path, while you’ll have a model path. As a result the subsequent nodes may also not work. A solution in Python is possible, but I don’t expect there are enough cohesive generic nodes for your specific use case here, as most background open tasks are VERY poorly suited in Dynamo.

1 Like