Python and Inventor

Python and Inventor

ivan.liu
Participant Participant
13,903 Views
2 Replies
Message 1 of 3

Python and Inventor

ivan.liu
Participant
Participant

Hi, I would like to get started with using Python to control certain features within Inventor similiar to what can be done with iLogic/VBA. What is the best way to get started with this? I have combed through google and the autodesk inventor forums and haven't really found much documentation on Python and the Inventor API.

 

Thanks for any help.

13,904 Views
2 Replies
Replies (2)
Message 2 of 3

chandra.shekar.g
Autodesk Support
Autodesk Support

Hello @ivan.liu,

 

Hoping that below forum discussion would be helpful to start Python programming with Inventor.

 

https://forums.autodesk.com/t5/inventor-customization/how-to-get-parameters-and-mass-of-a-part-with-...

 

Before python coding, com enabling installer for windows (pywin32-221.win-amd64-py3.6.exe) can be downloaded from below link.

 

https://sourceforge.net/projects/pywin32/files/pywin32/Build%20221/

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 3

aswin.ramasubramanian
Explorer
Explorer

Hi, 

I am trying to use python to access and work Inventor. I am unable to open due to the following error. 

com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147024809), None)

 

I have installed the pywin32 and other modules. 

I am using Spyder IDE for coding

 

Can you kindly help me fix this error please?

 

Thanks

0 Likes