Support for “BrowserFolder” in Part Documents in Autodesk Inventor 2027 API

Autodesk Inventor 2027 introduces a valuable enhancement for API developers and advanced users: support for BrowserFolder within part documents. This improvement enables better organization of features programmatically, bringing greater clarity and structure to complex part models.


🚀 What’s New?

In earlier versions, BrowserFolder functionality was primarily limited to assembly documents, making it difficult to logically organize features within part environments.

With Inventor 2027, this capability has been extended to part documents, allowing developers to create and manage folders directly within the part browser.

This enhancement is enabled through the introduction of:

  • BrowserPane.AddBrowserFolderWithOptions
  • BrowserFolder.PartFeatureFolder

🔧 Key API Enhancements

1. BrowserPane.AddBrowserFolderWithOptions

The AddBrowserFolderWithOptions method enables the creation of browser folders with improved flexibility and control.

Benefits:

  • Granular control over folder creation
  • Enhanced browser customization
  • Better organization of complex feature trees

2. BrowserFolder.PartFeatureFolder

The PartFeatureFolder property allows direct association of browser folders with part features.

What this enables:

  • Logical grouping of features such as extrusions, fillets, and patterns
  • Improved readability and navigation
  • More powerful automation workflows

💡 Why This Matters

As part models grow in complexity, organizing the feature tree becomes essential. This enhancement provides:

  • Improved Model Organization: Group related features for better clarity
  • Enhanced Automation: Automatically organize features during creation
  • Better User Experience: Cleaner browser structure for easier navigation

🧩 Sample Use Case

Consider a part with multiple stages such as base geometry, machining, and finishing. With BrowserFolder support, you can:

  • Create dedicated folders for each stage
  • Organize features programmatically
  • Maintain a structured browser tree

💻 VBA Sample Code

Below is a simple VBA example demonstrating how to create a BrowserFolder in a Part document using Inventor 2027 API:

Public Sub CreateBrowserFolderInPart()

    On Error GoTo ErrorHandler

    Dim app As Inventor.Application
    Set app = ThisApplication

    If app.ActiveDocumentType <> kPartDocumentObject Then
        MsgBox "Please open a Part document.", vbExclamation
        Exit Sub
    End If

    Dim partDoc As PartDocument
    Set partDoc = app.ActiveDocument

    Dim browserPane As BrowserPane
    Set browserPane = partDoc.BrowserPanes.Item("Model")

    Dim compDef As PartComponentDefinition
    Set compDef = partDoc.ComponentDefinition

    ' Create folder at default valid location
    Dim browserFolder As BrowserFolder
    Set browserFolder = browserPane.AddBrowserFolderWithOptions( _
                        "FeatureFolder")

    MsgBox "Browser folder created successfully!", vbInformation
    Exit Sub

ErrorHandler:
    MsgBox "Error: " & Err.Number & " - " & Err.Description, vbCritical

End Sub

🔍 Notes

  • The folder is created using AddBrowserFolderWithOptions
  • Default placement is used for compatibility and stability
  • Feature grouping can be extended using BrowserFolder.PartFeatureFolder

🏁 Conclusion

The addition of BrowserFolder support in part documents in Inventor 2027 is a focused yet impactful enhancement. It brings long-awaited organizational capabilities to part modeling workflows.

By leveraging BrowserPane.AddBrowserFolderWithOptions and BrowserFolder.PartFeatureFolder, developers can create more structured, maintainable, and user-friendly models.

For those developing add-ins or automation tools, this feature is well worth adopting to improve both functionality and user experience.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading