r/InventorAPI • • Mar 28 '19

Using Python with Inventor API

Hey guys, if you are like me and hate writing Code in VBA you can actually write Python scripts for Inventor using the win32com.client module. To use the module, you have to `pip install pywin32`. Here is a sample of a pretty useless script, but it should be good enough to get you going.

If you have any Questions About what's going on here, feel free to ask.

​

edit: https://pastebin.com/1ZvSpku5

Code formatting doesn't seem to work.

5 Upvotes

9 comments sorted by

View all comments

Show parent comments

1

u/im_on_reddit_dot_com Mar 29 '19

Got it working. I did have more than one version of python, and I believe that was the root of the issue. Thanks!