Solved

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

  • 4 November 2022
  • 8 replies
  • 54 views

Badge +10

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? 🙂 

icon

Best answer by danii 29 November 2022, 09:23

View original

8 replies

Userlevel 4

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.

Badge +10

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? 🙂

Badge +10

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?

Userlevel 4

@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.

Badge +10

@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 ;)

 

Userlevel 4

@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.

Badge +10

@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 🙂

Badge +10

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