Adsk.Platform.ModelDerivative
0.1.3
dotnet add package Adsk.Platform.ModelDerivative --version 0.1.3
NuGet\Install-Package Adsk.Platform.ModelDerivative -Version 0.1.3
<PackageReference Include="Adsk.Platform.ModelDerivative" Version="0.1.3" />
paket add Adsk.Platform.ModelDerivative --version 0.1.3
#r "nuget: Adsk.Platform.ModelDerivative, 0.1.3"
// Install Adsk.Platform.ModelDerivative as a Cake Addin #addin nuget:?package=Adsk.Platform.ModelDerivative&version=0.1.3 // Install Adsk.Platform.ModelDerivative as a Cake Tool #tool nuget:?package=Adsk.Platform.ModelDerivative&version=0.1.3
Autodesk Model Derivative Service
The package Adsk.Platform.ModelDerivative
provides a set of APIs to interact with the Autodesk Model Derivative Service.
Documentation
More information can be found here.
Installation
dotnet add package Adsk.Platform.ModelDerivative
Usage
See the QuickStart Guide for a general understanding.
The root object is ModelDerivativeClient
. This object provides access to the Model Derivative APIs
and the Helpers
method.
Querying specific model properties
The Fetch Specific Properties endpoint needs a query to filter the properties to be returned. The query is a JSON object that can be created using the UntypedObject
.
Here is an example of how to query the project attributes of an IFC model, using a helper method GetSpecificPropertiesAsync
. Compared to the default endpoint, this method waits until the server completes the processing
using Autodesk.ModelDerivative;
using Autodesk.ModelDerivative.Helpers.Models;
public async Task<ParsedSpecificProperties> GetIFCprojectAttributes()
{
async Task<string> getAccessToken()
{
//return access token with your logic
}
var MDclient = new ModelDerivativeClient(Location.US, getAccessToken);
var fileURN = ""; // Replace with your file version urn, like 'urn:adsk.wipprod:fs.file:vf.w9MS3MDBQaat6ObHffTA?version=1'
var modelGuid = ""; // Replace with your model guid like 'c0337487-5b66-422b-a284-c273b424af54'
//The query in the body request is {"$in":["objectid",2]}"} which is equivalent to the following
var query = new UntypedObject(new Dictionary<string, UntypedNode> {
{ "$in",new UntypedArray(
[
new UntypedString("objectid"),
new UntypedInteger(2)
])
}
});
var properties = await MDclient.Helper.GetSpecificPropertiesAsync(
fileURN, modelGuid, query);
return properties;
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Adsk.Platform.HttpClient (>= 0.1.3)
- Microsoft.Kiota.Authentication.Azure (>= 1.13.1)
- Microsoft.Kiota.Bundle (>= 1.13.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.3 | 94 | 10/17/2024 |
0.1.2 | 78 | 10/16/2024 |
0.1.1 | 93 | 10/16/2024 |
0.1.0 | 96 | 10/16/2024 |
0.0.16 | 89 | 10/14/2024 |
0.0.15 | 86 | 10/14/2024 |
0.0.14 | 90 | 10/14/2024 |
0.0.13 | 121 | 9/18/2024 |
0.0.12 | 77 | 7/30/2024 |
0.0.11 | 88 | 7/16/2024 |
0.0.10 | 92 | 7/16/2024 |
0.0.9 | 95 | 5/31/2024 |
0.0.8 | 89 | 5/22/2024 |
0.0.7 | 81 | 5/14/2024 |
0.0.6 | 131 | 5/4/2024 |
0.0.5 | 107 | 5/3/2024 |
0.0.4 | 116 | 4/30/2024 |
0.0.3 | 114 | 4/30/2024 |