linkedin
Q:

What are some good external code editors to use alongside Autodesk Inventor VBA development?

  • Date Restaurant
  • Apr 14, 2026

1 Answers

A:

Here are some of the good code editors:

  • VS Code – Absolute GOAT for editing .bas, .cls, and .frm files. Doesn't run VBA but has extensions for VB-style syntax. Pair it with a Git repo and you're living in 2025.
  • Notepad++ – Ultra lightweight, fast af, does what it says on the tin. Good for quick edits, but no type checking or real intellisense.
  • Rubberduck VBA – This one’s wild. It’s inside the VBA editor as an add-in, gives you refactoring tools, unit testing, even Code Inspection like ReSharper. Think 'VBA with a personality upgrade.
  • jEdit / Vim / Emacs – Only bring these out if you’re already in wizard mode. Cool, but massive overkill for 99% of macro work.

 

  • Dipon tete
  • Apr 16, 2026

0 0

Related Question and Answers

A:

Yes, you absolutely can sell your Inventor add-in, and Autodesk provides a formal channel for doing so through the Autodesk App Store. Here’s what you need to know:

Selling Your Add-In via Autodesk App Store

  • Eligibility
  • Submission Process
  • Monetization Options
  • Guidelines
  • Kateregga
  • Apr 09, 2026

A:

To avoid false positives, you can check if the link is still active before trusting the Mirror property:


Dim oDerivedPartComp As DerivedPartComponent
Set oDerivedPartComp = oCompDef.Features.DerivedPartComponents.Item(1)

If Not oDerivedPartComp.ReferencedFile Is Nothing Then
    If oDerivedPartComp.Definition.Mirror = True Then
        ' Valid mirrored derived part
    End If
Else
    ' Link is broken — don't trust Mirror property
End If

This ensures you're only evaluating the Mirror flag when the derived part is still linked to its source.

  • Aswin Thapa
  • Apr 10, 2026

A:

Here are the most effective options:

  1. Defer Updates in Assemblies
    
    ThisApplication.AssemblyOptions.DeferUpdate = True
    ' ... your macro logic ...
    ThisApplication.AssemblyOptions.DeferUpdate = False
            
    • Prevents automatic updates while modifying constraints, components, etc.
    • Best for assembly-level operations.
  2. Disable User Interaction
    
    ThisApplication.UserInterfaceManager.UserInteractionDisabled = True
    ' ... your macro logic ...
    ThisApplication.UserInterfaceManager.UserInteractionDisabled = False
            
    • Disables UI interaction and redraws.
    • May cause the Inventor window to appear frozen or disappear from the taskbar temporarily.
  • manoj tailor
  • May 06, 2026

A:

Here is your content converted into **HTML format** with clean structure and preserved VBA code: ```html

Setting Model State via API (for non-iAssembly documents)

Here’s how to set the active Model State for a part or assembly document:


Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument

Dim oModelStates As ModelStates
Set oModelStates = oDoc.ComponentDefinition.ModelStates

' Activate a specific model state by name
Dim targetState As String
targetState = "CustomState1"

If oModelStates.Item(targetState).Name <> oDoc.ComponentDefinition.ActiveModelState.Name Then
    oModelStates.Item(targetState).Activate
End If
  • Austin Lugterer
  • Apr 08, 2026

A:

Inventor Release 11 and later support saving PNG images using the SaveAsBitmapWithOptions method. This was not available before Release 6, but by R11, it's fully functional.

Here’s a working example adapted for R11:


Sub SaveIsometricViewAsPNG()
    Dim oView As View
    Set oView = ThisApplication.ActiveView

    ' Set camera to isometric view
    With oView.Camera
        .ViewOrientationType = kIsoTopRightViewOrientation
        .Fit
        .Apply
    End With

    ' Define PNG export options
    Dim options As NameValueMap
    Set options = ThisApplication.TransientObjects.CreateNameValueMap
    options.Value("TransparentBackground") = True ' Optional: set to False for solid background

    ' Save as PNG
    Dim ImgFname As String
    ImgFname = "C:\Temp\MyPart.png"
    Call oView.SaveAsBitmapWithOptions(ImgFname, 400, 400, options)
End Sub
  • Austin Lugterer
  • Apr 10, 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

Is there a way to create a custom command button in Inventor and then attach a macro to that button? I am able to do that in ACAD, just can't figure out how to do it in Inventor.

Write Answer

How can you safely evaluate the Mirror property of a derived part in Autodesk Inventor?

Write Answer

Is it possible to add VBA userforms to the browser pane?

Write Answer

Is Automatic Part Numbering Possible in Autodesk Inventor Like in X-Steel?

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