This script (see below) pulls participation factors in 2025R1, but returns an error "Exception: No output available on pin number 0. Available output pins are: []: line 26" when used in 2025R2. The exact same test model was used in both versions.
Test Script:
import mech_dpf
import Ans.DataProcessing as dpf
mech_dpf.setExtAPI(ExtAPI)
analysis_index = 0
ds = mech_dpf.GetDataSources(analysis_index)
analysis = Model.Analyses[analysis_index]
workdir = analysis.WorkingDir
path2rst = os.path.join(workdir,'file.rst')
path2mode = os.path.join(workdir,'file.mode')
path2full = os.path.join(workdir,'file.full')
Add .mode file to path
ds.AddFilePath(path2mode)
ds.AddFilePath(path2full)
Define operator
op = dpf.operators.result.spectrum_data()
op.inputs.data_sources.Connect(ds)
Retrieve items
my_participation_factors = op.outputs.participation_factors.GetData()