Hi at all,
using Autodesk BIM 360 Docs, can we use "visibleTypes" field ( taken from GET projects/:project_id/folders/:folder_id) as constraint to allow only PDF, DWF, RVT, DWG file format to be uploaded on Autodesk BIM 360 Docs Plans root?
It's this best way to apply this business rule?
Update:
If "visibleTypes" contains "items:autodesk.bim360:Document" we are in Plans root folder/sub-folder
if "visibleTypes" contains "items:autodesk.bim360:File" we are in Project Files root folder/sub-folder
Thanks,
Alberto
Hi Alberto
you mean that Autodesk has a process constraint in the Plans folder where only files of types PDF, DWF, RVT, DWG can be uploaded, so you need to find a way to detect you are in the Plans folder in order to apply the constraint at client side. You've find out that the API GET projects/:project_id/folders/:folder_id gives you a property named "visibleTypes" and you've noticed that for Plan it is set to "items:autodesk.bim360:Document" while for any other type of folder it is set to "items:autodesk.bim360:File", so you are planning to use this property as a way to detect the type of folder?
Exactly,
my plan is to use "visibleTypes" as a way to detect the type of folder Plans/ProjectFile.
I'm waiting for a confirm.
Thanks for reply,
Alberto
(We had a separate thread. But for the sake of the audience of this forum.)
Yes, you should be able to use visibleTypes = items:autodesk.bim360:Document
Another will be to check if the allowedTypes has Document, TitleBlock or ReviewDocument. Those types will not appear in Project Folders
Can't find what you're looking for? Ask the community or share your knowledge.