Adsk.Platform.ModelDerivative
0.0.16
See the version list below for details.
dotnet add package Adsk.Platform.ModelDerivative --version 0.0.16
NuGet\Install-Package Adsk.Platform.ModelDerivative -Version 0.0.16
<PackageReference Include="Adsk.Platform.ModelDerivative" Version="0.0.16" />
paket add Adsk.Platform.ModelDerivative --version 0.0.16
#r "nuget: Adsk.Platform.ModelDerivative, 0.0.16"
// Install Adsk.Platform.ModelDerivative as a Cake Addin #addin nuget:?package=Adsk.Platform.ModelDerivative&version=0.0.16 // Install Adsk.Platform.ModelDerivative as a Cake Tool #tool nuget:?package=Adsk.Platform.ModelDerivative&version=0.0.16
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.0.16)
- 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 | 83 | 10/17/2024 |
0.1.2 | 71 | 10/16/2024 |
0.1.1 | 84 | 10/16/2024 |
0.1.0 | 87 | 10/16/2024 |
0.0.16 | 80 | 10/14/2024 |
0.0.15 | 79 | 10/14/2024 |
0.0.14 | 81 | 10/14/2024 |
0.0.13 | 110 | 9/18/2024 |
0.0.12 | 72 | 7/30/2024 |
0.0.11 | 79 | 7/16/2024 |
0.0.10 | 85 | 7/16/2024 |
0.0.9 | 86 | 5/31/2024 |
0.0.8 | 82 | 5/22/2024 |
0.0.7 | 72 | 5/14/2024 |
0.0.6 | 124 | 5/4/2024 |
0.0.5 | 100 | 5/3/2024 |
0.0.4 | 111 | 4/30/2024 |
0.0.3 | 109 | 4/30/2024 |