๐Ÿ“„ Auto Open Drawing from Inventor Part/Assembly

2 minute read

Want to instantly open the drawing file related to the part or assembly youโ€™re working on in Autodesk Inventor? This free VBA macro does exactly that โ€” saving time and streamlining your workflow.


๐Ÿ” What It Does

This macro automatically looks for and opens the associated drawing file (.idw or .dwg) for the currently active Part (.ipt) or Assembly (.iam) file.

๐Ÿ“ Where It Searches

  • The same folder as the open file
  • All subfolders, up to 5 levels deep

If it finds a match (by file name), the drawing opens instantly in Inventor.


๐ŸŽฅ Demo: See It in Action

๐Ÿ‘‡ Hereโ€™s what the macro does with just one click:



โœ… Requirements

  • Autodesk Inventor 2015 or later
  • Windows with VBA support
  • The drawing file must have the same name as the part or assembly
    (e.g., Bracket.ipt โ†’ Bracket.idw or Bracket.dwg)

๐Ÿงฉ Included Files

File Name Purpose
OpenAssociatedDrawing.bas The macro module to import
README.md User guide in Markdown format

๐Ÿš€ How to Use

1. Open Inventor

Start Inventor and open any .ipt or .iam file.

2. Launch the VBA Editor

Press Alt + F11 to open the VBA Editor.

3. Import the Macro

  • Go to File โ†’ Import Fileโ€ฆ
  • Select OpenAssociatedDrawing.bas

4. Run the Macro

  • Close the VBA editor
  • Press Alt + F8, choose OpenAssociatedDrawing, then click Run

๐Ÿ’ก What the Macro Does Internally

  • Checks for an active .ipt or .iam file
  • Verifies the file is saved
  • Scans for .idw or .dwg with the same name
  • Searches subfolders, using breadth-first strategy
  • Opens the drawing if found, or shows an error message if not

โš ๏ธ Possible Error Messages

Message Cause
No document is open. Inventor has no file open
Open a Part (.ipt) or Assembly (.iam) file first. Macro works only with .ipt and .iam
Save the file before running the macro. Unsaved files canโ€™t be located
No drawing file found in folder or subfolders. Matching drawing file not found

๐Ÿ“ˆ Performance

  • Uses breadth-first search to avoid excessive memory use
  • Limited to 5 folder levels for speed and reliability

๐Ÿ’ผ Use It Like a Pro

  • Keep drawings in the same folder as models, or inside logical subfolders
  • Ensure filenames match exactly โ€” including case and extension
  • Extend this macro to include:
    • Autodesk Vault search
    • Logging
    • Automatic drawing creation (if not found)

๐Ÿ“ฆ Download the Macro

๐Ÿ‘‰ Click here to download the macro (OpenAssociatedDrawing.bas)

(Make sure to subscribe if download is gated)


๐ŸŒ Multilingual Support

This macro package includes README guides in multiple languages:

  • ๐Ÿ‡ฌ๐Ÿ‡ง English
  • ๐Ÿ‡ฉ๐Ÿ‡ช German
  • ๐Ÿ‡จ๐Ÿ‡ณ Chinese
  • ๐Ÿ‡ฏ๐Ÿ‡ต Japanese

๐Ÿ—‚ Youโ€™ll find the README guides inside the download folder to help users across different regions easily understand and use the macro.


๐Ÿ“ฌ Need Help?

If you have questions or want to suggest improvements:

  • ๐Ÿ’Œ Leave a comment below
  • ๐Ÿ“ง Reach out via the Contact page

๐Ÿ”’ License

This macro is provided as-is, without any warranty. You may freely modify and redistribute it for internal or client use.


โœจ Happy Automating!

Updated: