Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

ExternalFileUtils not working with C4R?

Anonymous
859 Views
4 Replies
Message 1 of 5

ExternalFileUtils not working with C4R?

Anonymous
Not applicable

Is it intentional that the ExternalFileUtils does not work with cloud-hosted links?

 

All other link types are returned, but any links to C4R Revit models are not returned at all. Feels like a bug.

 

Thanks,

Matt

 

0 Likes
860 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Dear Matt, 

 

Checking with the development team for you...

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

jeremytammik
Autodesk
Autodesk

Dear Matt, 

 

ExternalFileUtils only works with files on disk. This is intentional. There is a class ExternalResourceUtils which can get you elements using the External Resource / Referenced Files as a Service framework. You should be able to use that to find C4R models.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 5

mattmas
Enthusiast
Enthusiast

Thanks Jeremy - I had figured that out in the meantime - but I am struggling to determine if there's a way to identify when an External Resource Reference is "missing" versus "unloaded". This is possible with normal ExternalFileReferences, but I'm not seeing an equivalent on the External Resource Reference.

 

Thanks,

Matt

 

 

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

That’s unfortunately a place where we don’t have parity between files and resources.

 

I don’t think there’s a way to tell the difference with the API right now.

 

Sorry.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes