linkedin
Q:

Can the +/− structured BOM toggle in Autodesk Inventor Parts List be controlled via API?

  • Teresa Jamir
  • Mar 30, 2026

1 Answers

A:

The "+/-" toggle in the Edit Parts List dialog controls the expansion or collapse of structured BOM rows, especially in hierarchical assemblies. Unfortunately, this UI element isn’t directly exposed via the Inventor API or VBA as a toggle method.

However, there are workarounds depending on what you're trying to achieve:

Control Structured View via PartsListRow.ChildRows

You can simulate expansion/collapse by hiding or showing child rows programmatically. Here's a VBA snippet that toggles visibility:


Dim oDrawDoc As DrawingDocument
Set oDrawDoc = ThisApplication.ActiveDocument

Dim oPartsList As PartsList
Set oPartsList = oDrawDoc.ActiveSheet.PartsLists.Item(1)

Dim oRow As PartsListRow
For Each oRow In oPartsList.PartsListRows
    If oRow.ChildRows.Count > 0 Then
        ' Toggle visibility of child rows
        Dim oChildRow As PartsListRow
        For Each oChildRow In oRow.ChildRows
            oChildRow.Visible = Not oChildRow.Visible
        Next
    End If
Next

This doesn’t affect the "+/-" icon directly, but it mimics the behavior by collapsing or expanding rows.

  • Zareena Sultan
  • Apr 01, 2026

0 0

Related Question and Answers

A:

Use HealthStatus to Detect Failure

Every feature in Inventor has a HealthStatus property. You can use this to check if a feature is up-to-date, suppressed, or has failed.

Example (VBA-style pseudocode):


Dim oFeature As PartFeature
Set oFeature = oPartDoc.ComponentDefinition.Features.Item("MyExtrude")

If oFeature.HealthStatus <> kUpToDateHealth And oFeature.HealthStatus <> kSuppressedHealth Then
    oFeature.Suppressed = True
End If
  • Archana Parikh
  • Mar 31, 2026

A:

Yes, it is possible to reposition elevation view labels (or any drawing view labels) in Inventor using the API, either by default through styles or programmatically via code.

  • Terence Chan
  • Apr 01, 2026

A:

You can use Inventor’s TransientGeometry and CurveEvaluator objects to find the intersection between two curves or edges.

  • Teresa Jamir
  • Mar 31, 2026

A:

Yes - as of recent Inventor releases, you can set IGES output to wireframe using the TranslatorAddIn API. This is controlled via the GeometryType option in the export settings.

  • Sadiq Sariq
  • Mar 28, 2026

A:

It’s totally possible to write a translator add-in for Inventor using VB.NET. The reason most samples are in VC++ is historical (and a bit of Autodesk inertia), but the Inventor API is fully accessible from .NET languages, including VB.NET.

Example Flow (VB.NET):


Dim translator As TranslatorAddIn = CType(app.ApplicationAddIns.ItemById("{GUID}"), TranslatorAddIn)
Dim context = app.TransientObjects.CreateTranslationContext()
Dim options = app.TransientObjects.CreateNameValueMap()
Dim dataMedium = app.TransientObjects.CreateDataMedium()

context.Type = IOMechanismEnum.kFileBrowseIOMechanism
dataMedium.FileName = "C:\ExportedFile.step"

If translator.HasSaveCopyAsOptions(doc, context, options) Then
    translator.SaveCopyAs(doc, context, options, dataMedium)
End If
  • Ramamchandran V
  • Mar 30, 2026
Autodesk Inventorlogo

Autodesk Inventor

Autodesk

4.4

View Details
img

Have you used this product?

Share your experience, help others make better choices!

Add Review
img

Have a Question?

Get answered by real users or software experts

Ask Question

Help the community

Be the First to Answer these questions

I need to create a workpoint, but i can't find the way to use the method. For example, how I can to create a workpiont at the 2.5, 3,5.3 coords?

Write Answer

Can I programmatically “force a version” of a file using Autodesk Inventor or Vault APIs?

Write Answer

How can I create a new 2D sketch in an assembly document using VB/VBA or VB.NET in Autodesk Inventor?

Write Answer

How can I copy all files in a folder using VB.NET (for example, as part of an Autodesk Inventor automation tool)?

Write Answer

Still got Questions on your mind?

Get answered by real users or software experts

Disclaimer

Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers