Skip to content

Latest commit

 

History

History
132 lines (97 loc) · 3.53 KB

File metadata and controls

132 lines (97 loc) · 3.53 KB

Autodesk.Forge.EnginesApi

All URIs are relative to https://developer.api.autodesk.com/

Method HTTP request Description
GetAllEngines GET /autocad.io/us-east/v2/Engines Returns the details of all available AutoCAD core engines.
GetEngine GET /autocad.io/us-east/v2/Engines('{id}') Returns the details of a specific AutoCAD core engine.

GetAllEngines

DesignAutomationEngines GetAllEngines ()

Returns the details of all available AutoCAD core engines.

Example

using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;

namespace Example
{
    public class GetAllEnginesExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2_application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new EnginesApi();

            try
            {
                // Returns the details of all available AutoCAD core engines.
                DesignAutomationEngines result = apiInstance.GetAllEngines();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EnginesApi.GetAllEngines: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

DesignAutomationEngines

Authorization

oauth2_application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.api+json, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetEngine

Engine GetEngine (string id)

Returns the details of a specific AutoCAD core engine.

Example

using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;

namespace Example
{
    public class GetEngineExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2_application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new EnginesApi();
            var id = id_example;  // string | 

            try
            {
                // Returns the details of a specific AutoCAD core engine.
                Engine result = apiInstance.GetEngine(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EnginesApi.GetEngine: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
id string

Return type

Engine

Authorization

oauth2_application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.api+json, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]