2017-09-20 2 views

Répondre

0

Cet extrait est un excellent endroit pour commencer:

#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 = oPartDoc.ComponentDefinition.Parameters 

#Set Angularity   
oParams.Item("Name").Expression = *Value* 

#Update document 
oPartDoc.Update() 

#Save new version 
oPartDoc.Save