Jump to content

Error in script from older versions to SW2022


---
 Share

Recommended Posts

Hello all, I have a question that maybe someone could help me with. Our customer has been using a script for stadistical calculation in older versions (v7.5 SR2 and v8). Since then , they have not updated the software until last year. We installed the SW2022 and the script, but the script is not running anymore. There is an error in Line201, and we can´t find the reason. Maybe some of you have an idea about what can occur here. I attach the script and also the error.

I will be very grateful if someone could help us with this issue.

Thanks in advance, 

Julen 

command line.jpg

Estadisticas.py

Link to comment
Share on other sites

Hello,

Have you tried to insert a token in the script editor with "Insert->Element Value"?

image.png.823fed1ea3b707a68392a005544713b9.png

With the selection above, 

gom.app.project.project_statistics.all.total_number

gets inserted, which I hope fits your needs.

Best regards

Matthias

Link to comment
Share on other sites

  • 1 month later...

Please sign in to view this quote.

Thanks Matthias, I have tried to redo the script as you tell me, but I have not been able to make it work. Do you have any other suggestion? thanks in advance.

Julen

Link to comment
Share on other sites

 Share

×
×
  • Create New...