How to access the ACC Revit files to batch revit link them to current document?
To create a Revit Link Instance you first must create a Revit Link Type.
To create a Revit Link Type you first must create a Model Path.
To create a Model Path you must use the ModelPathUtils which have three relevant methods.
- ConvertUserVisiblePathToModelPath which takes a path to a file on disc and converts it to a ModelPath
- ConvertCloudGUIDsToCloudPath which takes a Model GUID and a Project GUID and creates a model path.
So to start with you have to have a list of model GUIDs for each file you want to link, and the project GUID which the models are in.
i do not know any model path because ACC is in the cloud DOCS folder structures, is there an Auodesk tool that does the batch link? I remember Autodesk responded me to this in 2021 with a little tool that does it, they said in future revit we will add motifications to the API to allow to link easier with ACC but that functionality was not available in Revit 2021 by the time so this tool did the work, i do not know where to get it from now, i lost the contacts and the installation files
I understand you don’t have the path - you need to access the GUIDs.
There are two options here.
- Build your own reference document for by opening every cloud model you’ll want to link, get the model path of the document, extracting the two GUIDs, and write them to the document. As new models are added you’ll have to add to this.
- Use APS to extract the information. The Revit help documentation has a good outline on the steps and links to the APS documentation as well, found here: Help