Adsk.Platform.ModelDerivative
0.0.13
See the version list below for details.
dotnet add package Adsk.Platform.ModelDerivative --version 0.0.13
NuGet\Install-Package Adsk.Platform.ModelDerivative -Version 0.0.13
<PackageReference Include="Adsk.Platform.ModelDerivative" Version="0.0.13" />
paket add Adsk.Platform.ModelDerivative --version 0.0.13
#r "nuget: Adsk.Platform.ModelDerivative, 0.0.13"
// Install Adsk.Platform.ModelDerivative as a Cake Addin #addin nuget:?package=Adsk.Platform.ModelDerivative&version=0.0.13 // Install Adsk.Platform.ModelDerivative as a Cake Tool #tool nuget:?package=Adsk.Platform.ModelDerivative&version=0.0.13
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.13)
- Microsoft.Kiota.Abstractions (>= 1.9.7)
- Microsoft.Kiota.Serialization.Form (>= 1.2.5)
- Microsoft.Kiota.Serialization.Json (>= 1.3.3)
- Microsoft.Kiota.Serialization.Multipart (>= 1.1.5)
- Microsoft.Kiota.Serialization.Text (>= 1.2.2)
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 | 80 | 10/17/2024 |
0.1.2 | 68 | 10/16/2024 |
0.1.1 | 81 | 10/16/2024 |
0.1.0 | 85 | 10/16/2024 |
0.0.16 | 78 | 10/14/2024 |
0.0.15 | 77 | 10/14/2024 |
0.0.14 | 79 | 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 |