Share

Manufacturing DevBlog: May 2025

Blogs

by Chandra shekar Gopal,

Autodesk Inventor 2026 brings powerful new API capabilities that enhance automation, customization, and flexibility across modeling, documentation, and configuration workflows. Below is a curated index of recent blog posts that dive into these new API features with practical examples and technical guidance.

🔢 Index of Articles

  1. Managing Model States Edit Scope in Autodesk Inventor 2026 API
  2. The Relationship Between iProperties and Model States in Autodesk Inventor 2026 API
  3. Introducing New API Support for the Simplify Feature in Autodesk Inventor 2026
  4. Repositioning Detail View ID Tag in Autodesk Inventor 2026 API
  5. Inventor Apprentice Server Enhancement in Inventor 2026
  6. Autodesk Inventor 2026 API Now Supports IFC4x3 – Automate BIM Exports with VBA
  7. Introducing Sketch-Based BreaksOperations for Drawings in Autodesk Inventor 2026 API
  8. Adapting to Change: Inventor Design Automation 2026 Engine Moves to .NET 8

1. Managing Model States Edit Scope in Autodesk Inventor 2026 API

Inventor 2026 introduces write access to the ModelStatesInEdit property, offering precise control over which model states are editable. Combined with MemberEditScope, it enables flexible and scalable automation for variant design workflows.

  • Use enums like kEditActiveMember and kEditMultipleMembers to define scope.
  • Assign model states dynamically using VBA.

2. The Relationship Between iProperties and Model States in Autodesk Inventor 2026 API

This article explains how iProperties behave within individual model states, and how to use the API to access and modify these properties per state using PropertySets.

  • Retrieve and write iProperties across variant configurations.
  • Improve metadata control across model states programmatically.

3. Introducing New API Support for the Simplify Feature in Autodesk Inventor 2026

Inventor 2026 now exposes API support for the Simplify environment. Developers can automate simplification workflows for assemblies using a new object model SimplifyFeatures introduced under ComponentDefintion.Features.

  •  Access and manipulate simplification options programmatically.
  •  Enable workflows that reduce geometry while maintaining manufacturing fidelity.

4. Repositioning Detail View ID Tag in Autodesk Inventor 2026 API

Inventor 2026 introduces new methods to control the placement of ID tag labels in drawing Detail Views. This gives developers more flexibility in managing annotation layout.

  • Modify tag position programmatically for better drawing clarity.
  • Fine-tune annotations for large or crowded documentation layouts.

5. Inventor Apprentice Server Enhancement in Inventor 2026

The Apprentice Server is now registry-free in Inventor 2026. While this enhances deployment and reduces system conflicts, it also requires developers to register and reference the server differently.

  • The built-in Apprentice Server is no longer COM-registered by default.
  • For COM-based tools, install the standalone Apprentice Server 2026 and run ApprenticeRegSrv.exe /install.
  • Update paths to reference the standalone installation rather than Inventor’s Bin folder.
  • Developers should always register the correct version manually in multi-version environments.

6. Autodesk Inventor 2026 Now Supports IFC4x3 – Automate BIM Exports with VBA

Inventor 2026 adds support for the IFC4x3 standard. This post demonstrates how to automate IFC export workflows using VBA, helping developers integrate Inventor into modern BIM pipelines.

  • Use the API to create and configure IFCExportOptions.
  • Export part and assembly documents to IFC4x3 format.
  • Automate naming, folder output, and classification during export.

7. Introducing Sketch-Based Breaks in Autodesk Inventor 2026 Drawings

Inventor 2026 enhances the drawing environment by allowing users to define sketch-based break lines through the API. This enables better control over views that need to exclude or condense geometry.

  • Programmatically apply sketch-driven break definitions.
  • Improve drawing clarity for long or repetitive components.

8. Adapting to Change: Inventor Design Automation 2026 Engine Moves to .NET 8

Inventor Design Automation has migrated to .NET 8. This blog outlines what’s changed, how to update your add-ins, and how to prepare for future compatibility in cloud-based design automation.

  • Update your .csproj files to use .NET 8 SDK.
  • Migrate .NET Framework dependencies like NLog.dll to .NET-compatible versions.
  • Use the new NETCore.RuntimeVersion engine parameter to control runtime environments in Design Automation.

🏁 Conclusion

The Inventor 2026 release is packed with robust API improvements spanning model states, drawing automation, BIM support, and deployment architecture. These updates offer powerful capabilities for customizing Inventor and extending its use in enterprise, cloud, and industry-specific workflows.

For further examples, migration guidance, and ongoing updates—stay tuned to the Manufacturing DevBlog.

by Chandra shekar Gopal,

As Autodesk Inventor continues evolving, developers targeting automation through its COM API face new challenges. One key issue is the deprecation of System.Runtime.InteropServices.Marshal.GetActiveObject in .NET Core and its obsolescence starting with Inventor 2025, which now supports .NET 8. This blog post focuses specifically on how to work with running Inventor instances in modern .NET environments using a reliable P/Invoke workaround.

⚠️ Note: Marshal.GetActiveObject was fully supported in Inventor 2024 and previous releases. However, Inventor 2025 officially supports .NET 8, making this method obsolete and unsupported. Developers must adopt alternative approaches for interacting with live Inventor sessions.


What Was Marshal.GetActiveObject in Inventor Automation?

In .NET Framework, Marshal.GetActiveObject("Inventor.Application") enabled developers to connect to a running instance of Autodesk Inventor. This capability was crucial for add-ins, scripts, or standalone tools automating tasks via Inventor's COM API.

Unfortunately, .NET Core and .NET 5/6+ do not support this method. To continue developing automation tools with modern .NET runtimes, an alternative method is needed.


The Solution: Using P/Invoke to Access Inventor's COM Object

Platform Invocation Services (P/Invoke) allow managed .NET code to call native Windows API functions. By importing COM interop functions directly, we can replicate the behavior of Marshal.GetActiveObject and connect to Inventor instances.

Sample Implementation

Here is a practical C# workaround that allows you to retrieve the active Inventor session in .NET Core or .NET 5/6/8:


using System;
using System.Runtime.InteropServices;
using System.Security;

namespace InventorInterop
{
    internal static class NativeMethods
    {
        private const string OLEAUT32 = "oleaut32.dll";
        private const string OLE32 = "ole32.dll";

        [DllImport(OLE32, PreserveSig = false)]
        [SuppressUnmanagedCodeSecurity]
        public static extern void CLSIDFromProgIDEx([MarshalAs(UnmanagedType.LPWStr)] string progId, out Guid clsid);

        [DllImport(OLE32, PreserveSig = false)]
        [SuppressUnmanagedCodeSecurity]
        public static extern void CLSIDFromProgID([MarshalAs(UnmanagedType.LPWStr)] string progId, out Guid clsid);

        [DllImport(OLEAUT32, PreserveSig = false)]
        [SuppressUnmanagedCodeSecurity]
        public static extern void GetActiveObject(ref Guid rclsid, IntPtr reserved, [MarshalAs(UnmanagedType.Interface)] out object ppunk);
    }

    internal class InventorConnector
    {
        public static object GetInventorInstance()
        {
            Guid clsid;
            string progId = "Inventor.Application";

            try
            {
                NativeMethods.CLSIDFromProgIDEx(progId, out clsid);
            }
            catch
            {
                NativeMethods.CLSIDFromProgID(progId, out clsid);
            }

            NativeMethods.GetActiveObject(ref clsid, IntPtr.Zero, out var obj);
            return obj;
        }
    }
}

Code Breakdown

NativeMethods Class:

  • Wraps required COM interop functions.
  • Includes methods for converting a ProgID to CLSID and accessing the Running Object Table (ROT).

InventorConnector Class:

  • Contains GetInventorInstance, a utility method specifically tailored to connect to Inventor.
  • Falls back to CLSIDFromProgID if CLSIDFromProgIDEx is unavailable.

Why This Matters for Inventor Developers

This workaround allows .NET Core and .NET 8+ developers to continue building powerful Inventor automation tools:

  • Ensures compatibility with Inventor 2025 and future releases.
  • Unlocks modern .NET features while maintaining access to the Inventor COM API.
  • Offers a robust template for other Autodesk automation scenarios.

Conclusion

With Inventor 2025 moving forward on .NET 8, legacy features like Marshal.GetActiveObject are no longer viable. Fortunately, by using P/Invoke to access native COM APIs, you can still attach to running Inventor instances and build effective automation workflows.

This method provides a future-proof way to maintain your productivity tools while aligning with Autodesk's platform evolution.

by Chandra shekar Gopal,

The Simplify feature has long been a valuable tool within the Autodesk Inventor user interface, allowing users to reduce model complexity, enhance performance, and protect intellectual property. While the functionality has been available through the UI in earlier versions, Inventor 2026 marks the first release that introduces official API support for the Simplify feature.

This new API capability enables engineers and developers to automate the simplification process programmatically perfect for large-scale workflows, batch processing, or custom tool development.

In this article, we’ll revisit the benefits of the Simplify feature and walk through a sample VBA implementation using the new Inventor 2026 API.


✅ Why Use the Simplify Feature?

Whether you’re managing large assemblies or sharing sensitive models with external teams, simplifying your design offers several key advantages:

  1. Improve Performance
    By removing unnecessary detail or replacing geometry with simple envelopes, you can:
    • Reduce assembly load times
    • Lower memory consumption
    • Improve overall responsiveness in the graphics window
  2. Protect Intellectual Property (IP)
    When sharing models outside your organization, the Simplify feature allows you to:
    • Strip internal or proprietary features
    • Replace complex geometry with abstracted shapes
    • Export only the essential form (e.g., via STEP or SAT formats)
  3. Prepare for Simulation or Analysis
    Simplified parts are easier to mesh and simulate:
    • Fillets, threads, and small holes can be removed
    • Mesh generation becomes faster and more stable
  4. Create Envelopes for Assembly Management
    Use simplified parts as envelopes to:
    • Keep large assemblies lightweight
    • Perform interference checks and space planning more effectively

🔧 VBA Sample – Using the Simplify API in Inventor 2026

Starting with Inventor 2026, the Simplify feature can be accessed via the API. Here's a sample VBA procedure that shows how to automate simplification in a part document:


Sub PartSimplifyFeatureSample()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument

    Dim oCompDef As PartComponentDefinition
    Set oCompDef = oDoc.ComponentDefinition

    Dim oSimplifyFeatures As SimplifyFeatures
    Set oSimplifyFeatures = oCompDef.Features.SimplifyFeatures

    Dim oSimplifyDef As SimplifyDefinition
    Set oSimplifyDef = oSimplifyFeatures.CreateDefinition()

    ' Configure the options for the simplify feature.
    oSimplifyDef.EnvelopesReplaceStyle = kEachBodyReplaceStyle
    oSimplifyDef.EnvelopeBoundingType = kOrientedMinimumBoundingBox
    oSimplifyDef.RemoveInternalBodies = False
    oSimplifyDef.RemoveBodiesBySize = True
    oSimplifyDef.RemoveBodiesSize = 10 ' in centimeters

    ' Create the Simplify feature.
    Dim oSimplifyFeature As SimplifyFeature
    Set oSimplifyFeature = oSimplifyFeatures.Add(oSimplifyDef)
End Sub

🔍 Key Parameters Explained

Property Purpose
EnvelopesReplaceStyle Specifies how to replace geometry (e.g., per body or whole part)
EnvelopeBoundingType Type of bounding geometry used (e.g., oriented bounding box)
RemoveInternalBodies Removes fully enclosed bodies if set to True
RemoveBodiesBySize Enables removal of bodies below a size threshold
RemoveBodiesSize Sets the minimum diagonal size (in cm) for a body to remain in the model

📝 Final Thoughts

While the Simplify feature has been available through the Inventor UI in earlier versions, Inventor 2026 opens the door for automation through the API. This enhancement empowers developers to integrate simplification into custom workflows, boosting productivity and consistency across teams.

If you've been manually simplifying your parts until now, it's time to explore the benefits of doing it programmatically in Inventor 2026.

Was this information helpful?