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)
oParams = oModel.NestedObjects
for oItem in oParams:
if oItem.name == "Resolutions":
oFile = (oItem.NestedObjects[aRes].NestedObjects[0].GetValue2(1280))
xsi.logmessage (oFile)