Skip to main content
Solved

Copy files from folder to another in BIM360/Autodesk Construction Cloud with Default Attributes

  • 4 November 2022
  • 8 replies
  • 282 views

danii
Contributor
Forum|alt.badge.img+12

I want to copy files from one folder to another in BIM360/ACC with AutodeskBIM360DocsConnector, and in BIM360/ACC there is a Default Attribute column for Description. And when I copy them in FME the Description does not come with. 

 

In AutodeskBIM360DocsConnector there is no option in Attributes to Add called Description. 

 

Any suggestions for how I can get the Description in the copy process? 🙂 

Best answer by danii

I got this answer from Autodesk Forge support:

"I hate to disappoint you, but it is true Description field has not been exposed by the API. We have had a wish ticket: FDM-3124. We are pushing engineer team to implement.

It is a bad workaround, while it might be way you create one custom attribute and input description there. API with custom attribute is available."

https://forge.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta

View original
Did this help you find an answer to your question?

david_r
Evangelist
  • November 7, 2022

You'll have to make a separate API call using the HTTPCaller to retrieve custom attributes using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-GET/

You can then unpack the custom attributes from the returned JSON document. You'll have to use a similar approach when writing back the custom attributes, probably using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-POST/

In the HTTPCaller authentication settings, you should use the same web connection as the AutodeskBIM360DocsConnector.


danii
Contributor
Forum|alt.badge.img+12
  • Contributor
  • November 7, 2022
david_r wrote:

You'll have to make a separate API call using the HTTPCaller to retrieve custom attributes using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-GET/

You can then unpack the custom attributes from the returned JSON document. You'll have to use a similar approach when writing back the custom attributes, probably using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-POST/

In the HTTPCaller authentication settings, you should use the same web connection as the AutodeskBIM360DocsConnector.

Hi @david_r​ ,

Thanks for answering. 🙂

Is it possible for you to paste an example for how to full the Forge Autodesk information inside HTTPCaller in FME? 🙂


danii
Contributor
Forum|alt.badge.img+12
  • Contributor
  • November 9, 2022
david_r wrote:

You'll have to make a separate API call using the HTTPCaller to retrieve custom attributes using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-GET/

You can then unpack the custom attributes from the returned JSON document. You'll have to use a similar approach when writing back the custom attributes, probably using https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-custom-attribute-definitions-POST/

In the HTTPCaller authentication settings, you should use the same web connection as the AutodeskBIM360DocsConnector.

@david_r​ Attribute "Description" is a default attribute not a custom attribute.

Is it possible to made change in AutodeskBIM360DocsConnector to read "Description" also in FME?


david_r
Evangelist
  • November 10, 2022
danii wrote:

@david_r​ Attribute "Description" is a default attribute not a custom attribute.

Is it possible to made change in AutodeskBIM360DocsConnector to read "Description" also in FME?

If it's not in a the custom attributes, you'll most probably get it from one of the other API endpoints. You can e.g. try

https://developer.api.autodesk.com/data/v1/projects/<PROJECT_ID>/folders/<folder-id>/contents

I do not know of any way to get this information from the AutodeskBIM360DocsConnector.


danii
Contributor
Forum|alt.badge.img+12
  • Contributor
  • November 10, 2022
danii wrote:

@david_r​ Attribute "Description" is a default attribute not a custom attribute.

Is it possible to made change in AutodeskBIM360DocsConnector to read "Description" also in FME?

Ok thanks @david_r​  :)

I tried a lot of API endpoints to get that but I still can't read it.

I will try to get some help from Autodesk support.

I could by also nice to find a way to get this attribute in AutodeskBIM360DocsConnector ;)

 


david_r
Evangelist
  • November 10, 2022
danii wrote:

@david_r​ Attribute "Description" is a default attribute not a custom attribute.

Is it possible to made change in AutodeskBIM360DocsConnector to read "Description" also in FME?

Unfortunately it seems the description column isn't currently exposed in the Autodesk API: https://stackoverflow.com/a/67411605

Sounds like contacting Autodesk is the best option here.


danii
Contributor
Forum|alt.badge.img+12
  • Contributor
  • November 10, 2022
danii wrote:

@david_r​ Attribute "Description" is a default attribute not a custom attribute.

Is it possible to made change in AutodeskBIM360DocsConnector to read "Description" also in FME?

Thanks @david_r​ 🙂 I will have a meeting with an Autodesk Forge developer to discuss this problem tomorrow.

Hope to find out a solution for that soon 🙂


danii
Contributor
Forum|alt.badge.img+12
  • Contributor
  • November 29, 2022

I got this answer from Autodesk Forge support:

"I hate to disappoint you, but it is true Description field has not been exposed by the API. We have had a wish ticket: FDM-3124. We are pushing engineer team to implement.

It is a bad workaround, while it might be way you create one custom attribute and input description there. API with custom attribute is available."

https://forge.autodesk.com/blog/custom-attributes-apis-bim-360-document-are-now-public-beta


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings