Skip to main content
Solved

Autodesk BIM360 Docs Connector transformer cannot download file to a location specified in a feature attribute value

  • September 24, 2021
  • 5 replies
  • 48 views

birgit
Influencer
Forum|alt.badge.img+21

Hi everyone,

 

I am trying to download a set of files with the AutodeskBIM360DocsConnector and save them to a temporary location. The temp location is generated with the TempPathCreator. The BIM 360 connector does not have the option to pick an attribute for the "Download to Folder" parameter. Typing out @Value(DownloadLocation) seems to trigger FME to recognize that I want to use an attribute value, however during translation the attribute value is ignored and instead FME uses the string I typed in i.e. it creates a map named "@Value(DownloadFolder)".

 

2021-09-24_09h48_57 

 

Best answer by nielsgerrits

One workaround I can think of is to write the file to an attribute and use a AttributeFileWriter to write it to a file in the temp folder.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • September 24, 2021

One workaround I can think of is to write the file to an attribute and use a AttributeFileWriter to write it to a file in the temp folder.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • September 24, 2021

One workaround I can think of is to write the file to an attribute and use a AttributeFileWriter to write it to a file in the temp folder.

Nice


birgit
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • 131 replies
  • September 27, 2021

One workaround I can think of is to write the file to an attribute and use a AttributeFileWriter to write it to a file in the temp folder.

Thanks Niels,

 

I tried out your suggestion but in my usecase the AttributeFileWriter causes some problems. I was trying to download an Autodesk Civil dwg and it kept throwing exceptions on the dwg versioning being higher than version 2018 even though it isn't. I tried setting the encoding on the AttributeFileWriter but it didn't fix the error.

 

In the end I decided to not make use of temporary file paths and just create a folder to directly save the files to from the BIM360 Docs transformer, which is adequate for my desktop usecase.

 

I think if I was not downloading dwg files your solution would work.


  • 1 reply
  • November 15, 2021

I try to connect to BIM360 project with my web Connection.

I cannot read any file

 

imageWhen i click to Hub paramter, it does appear nothing .

May be i have to make a connection with hub that i have to create ?

 


birgit
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • 131 replies
  • November 16, 2021

I try to connect to BIM360 project with my web Connection.

I cannot read any file

 

imageWhen i click to Hub paramter, it does appear nothing .

May be i have to make a connection with hub that i have to create ?

 

Yes fme_user, you need to first make an autodesk forge app, then you use the client ID from that Forge app to create a connection in BIM 360. You can get the exact explanation if you click on help in the BIM 360 connector in your workspace. Please note that you probably have to do this together with your IT-Department.