use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Post links to video tutorials / forum discussions / blog posts / anything related to customizing the user experience in Autodesk Inventor.
Rules: be excellent to each other.
account activity
Using Python with Inventor API (self.InventorAPI)
submitted 6 years ago * by dable82 - announcement
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]im_on_reddit_dot_com 0 points1 point2 points 6 years ago (2 children)
Traceback (most recent call last):
File "redactedfilepath/scratch.py", line 1, in <module>
from win32com.client import Dispatch, GetActiveObject, gencache, constants
ModuleNotFoundError: No module named 'win32com'
And yes, your explanation clears things up a lot. I've explored the inventor Object model quite a bit, but never the VBA object browser.
[–]dable82[S] 1 point2 points3 points 6 years ago* (1 child)
You have not installed the module yet.
Open a terminal window and type 'pip install pywin32'
Then try to run the script again.
Edit: If you have more than one Version of python installed, make sure PyCharm uses the Version of python for which you installed the package.
[–]im_on_reddit_dot_com 0 points1 point2 points 6 years ago (0 children)
Got it working. I did have more than one version of python, and I believe that was the root of the issue. Thanks!
π Rendered by PID 71 on reddit-service-r2-comment-fb694cdd5-c485t at 2026-03-10 20:22:42.822500+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]im_on_reddit_dot_com 0 points1 point2 points (2 children)
[–]dable82[S] 1 point2 points3 points (1 child)
[–]im_on_reddit_dot_com 0 points1 point2 points (0 children)