Table of Contents

Class FileManagementClientHelper

Namespace
Autodesk.ACC.FileManagement.Helpers
Assembly
Autodesk.ACC.FileManagement.dll
public class FileManagementClientHelper
Inheritance
FileManagementClientHelper
Inherited Members

Properties

Api

public BaseFileManagementClient Api { get; init; }

Property Value

BaseFileManagementClient

Methods

GetAllCustomAttributeDefinitionAsync(string, string)

Get all custom attribute definitions for an ACC/BIM360 folder

public Task<List<CustomAttributeDefinitions_results>> GetAllCustomAttributeDefinitionAsync(string projectId, string folderId)

Parameters

projectId string

ACC/BIM360 project id

folderId string

Folder Id containing the file

Returns

Task<List<CustomAttributeDefinitions_results>>

List of Id, Name and type of the attribute

Remarks

Handles the pagination of the underlying api

GetCustomAttributeDefinitionAsync(string, string)

Get all custom attribute definitions for an ACC/BIM360 folder

public IAsyncEnumerable<CustomAttributeDefinitions_results> GetCustomAttributeDefinitionAsync(string projectId, string folderId)

Parameters

projectId string

ACC/BIM360 project id

folderId string

Folder Id containing the file

Returns

IAsyncEnumerable<CustomAttributeDefinitions_results>

Stream of Id, Name and type of the attribute

Remarks

Handles the pagination of the underlying api

UpdateCustomAttributesAsync(string, string, string, List<CustomAttribute>)

Update custom attributes for a file version

public Task<List<AttributeUpdateError>> UpdateCustomAttributesAsync(string projectId, string folderId, string fileVersionId, List<CustomAttribute> attributes)

Parameters

projectId string

Id of the ACC/BIM360 project storing the file version to update. Example: 'c0337487-5b66-422b-a284-c273b424af54'

folderId string

Id of the folder containing the file version to update.

fileVersionId string

Id of the file version to update. Example: 'urn:adsk.wipprod:fs.file:vf.C_U3fVV_RMi4o9W-ve4LwQ?version=2'

attributes List<CustomAttribute>

New attributes values. Only pass attributes that must be updated. Pass null for clearing an attribute

Returns

Task<List<AttributeUpdateError>>

List of errors