Table of Contents

Class ModelPropertiesClientHelper

Namespace
Autodesk.ACC.ModelProperties.Helpers
Assembly
Autodesk.ACC.ModelProperties.dll
public class ModelPropertiesClientHelper
Inheritance
ModelPropertiesClientHelper
Inherited Members

Properties

Api

public BaseModelPropertiesClient Api { get; init; }

Property Value

BaseModelPropertiesClient

Methods

ConvertLDJsonToList<T>(Stream)

Convert a LDJSON (Line Delimited Json) stream to a list of dynamic objects. See https://jsonlines.org/

public static List<T> ConvertLDJsonToList<T>(Stream sourceStream)

Parameters

sourceStream Stream

Returns

List<T>

List of parsed json objects

Type Parameters

T

Type of the elements in the list

Exceptions

InvalidOperationException

CreateSearchIndexAsync(string, string)

Create a search index for a file version. Will wait for the index to be created.

public Task<string> CreateSearchIndexAsync(string projectId, string fileVersionUrns)

Parameters

projectId string

ACC/BIM360 projectId

fileVersionUrns string

File version urn

Returns

Task<string>

The search Index Id

Exceptions

InvalidOperationException

FixProjectId(string)

Fix project id by removing the prefix 'b.' if it is existing

public static string FixProjectId(string projectId)

Parameters

projectId string

Current project id

Returns

string

Project id with 'b.' prefix

GetFields(string, string)

public Task<List<Field>> GetFields(string projectId, string indexId)

Parameters

projectId string
indexId string

Returns

Task<List<Field>>

GetPropertiesAsync(string, string, string)

public Task<List<ExpandoObject>> GetPropertiesAsync(string projectId, string indexId, string queryId)

Parameters

projectId string
indexId string
queryId string

Returns

Task<List<ExpandoObject>>

RunQueryAsync(string, string, IndexQueryRequest)

public Task<string> RunQueryAsync(string projectId, string indexId, IndexQueryRequest query)

Parameters

projectId string
indexId string
query IndexQueryRequest

Returns

Task<string>