autodesk-inventor

Collection of Collections - How to make sub-collections by value rather than reference?

蓝咒 提交于 2021-01-28 19:24:43
问题 What I am trying to do is for Autodesk Inventor. I'm writing a program that goes iterates through a bunch of lines in a sketch. It gathers the groups of connected lines and puts them in a collection. Then it makes a collection of these collections to be processed. I'm trying to do this by adding the lines to a temporary collection, then adding this temporary collection to the collection of loops, so that I don't have to generate an unknown amount of collections for each loop. However, as soon

Using python to automate Autodesk Inventor

孤街醉人 提交于 2019-12-11 15:48:14
问题 Is there a way to open and control a solid model in Inventor using python? My goal to start with a database of dimensions and simulate every configuration. 回答1: This snippet is a great place to start: #Open Inventor invApp = win32com.client.Dispatch("Inventor.Application") #Make inventor visible invApp.Visible = True #Set file names of template Part_FileName_BaseIPT = 'C:\\Base.ipt' #Open the base model oPartDoc=invApp.Documents.Open(Part_FileName_BaseIPT) #Collect parameters oParams =