Overblog
Suivre ce blog Administration + Créer mon blog

Getting a ref model's target file in python

It was not so easy so here it is: from win32com.client import constants xsi = Application oRoot = xsi.ActiveSceneRoot oModels = oRoot.getmodels2() for oModel in oModels: if oModel.parameters("referenced_model").GetValue2(1280) == 1: aRes =oModel.parameters("active_resolution").GetValue2(1280)...

Lire la suite