Inventor 2016 Python API automation

Inventor 2016 Python API automation

Anonymous
Not applicable
5,467 Views
3 Replies
Message 1 of 4

Inventor 2016 Python API automation

Anonymous
Not applicable

 

I have been using Inventor for close to 5 years now, but have just discovered the ability to use it via Python API. Is it possible to automate a batch STL file creation from a model with python? I want to take a 3D model and slice it into a chucks based on a desired thickness, then save each chunk as a separate STL file with an indexed file name.

 

Ideally, the process would be something like:

 

1) save STL file in particular file folder

2) Launch python program and point it to the file directory

3) Select slice thickness and plane to slice on

4) File is sliced and saved to desired director in a filename_1, filename_2, filename_3, etc. nomenclature

 

I am doing research with 3D printed structures, where I want to be able to do certain things on certain layers that a normal slicer cannot do. This script would just cut down on manual labor. I have intermediate python coding skills, however I have no experience with the API and have not been able to find any python tutorials or examples.

 

Thank you in advance!!!

0 Likes
5,468 Views
3 Replies
Replies (3)
Message 2 of 4

MechMachineMan
Advisor
Advisor

You'll probably have better luck if you just use vba/vb.net instead of python as there are a lot more samples, a lot more code, and a lot more expertise out there instead of using python.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 3 of 4

Anonymous
Not applicable
I am open to using VBA if that is more widely supported.

Do you know of any tools and/or resources that would be helpful for what I
am trying to do?

Thank you
0 Likes
Message 4 of 4

AlexFielder
Advisor
Advisor
0 Likes