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
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
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
Returns
Exceptions
FixProjectId(string)
Fix project id by removing the prefix 'b.' if it is existing
public static string FixProjectId(string projectId)
Parameters
projectId
stringCurrent project id
Returns
- string
Project id with 'b.' prefix
GetFields(string, string)
public Task<List<Field>> GetFields(string projectId, string indexId)
Parameters
Returns
GetPropertiesAsync(string, string, string)
public Task<List<ExpandoObject>> GetPropertiesAsync(string projectId, string indexId, string queryId)
Parameters
Returns
RunQueryAsync(string, string, IndexQueryRequest)
public Task<string> RunQueryAsync(string projectId, string indexId, IndexQueryRequest query)
Parameters
projectId
stringindexId
stringquery
IndexQueryRequest