Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

using "visibleTypes" as constraint to allow particular file ext upload in Plans

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
400 Views, 3 Replies

using "visibleTypes" as constraint to allow particular file ext upload in Plans

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

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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?

Message 3 of 4
Anonymous
in reply to: Anonymous

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

Message 4 of 4
mikako_harada
in reply to: Anonymous

(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


Mikako Harada
Developer Technical Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report