07-04-2014 07:04 AM
Hello,
i have kind a strange problem.
Always wenn i run my script first time (after opening Diadem), it works not corretly. Specificly creating a report goes wrong.
When i start the script for second time (and each additional time) everything works fine and correctly?!
For understand:
- I do some (mathemtical) analyse - always works correctly
- Load/Append prepared ReportLayout, add curves, create text objects - doesn't work for the first time, then it alwas works correctly
The mistake is, that all curves (that should be in several appended layouts and text objects) are added in the first loaded report sheet (though the reportsheets were appended)
As i said, when i start the script second time (and each additional time) everything works fine as it should?!
Thanks
Solved! Go to Solution.
07-07-2014 02:52 AM
HI AndiMEC,
did you try to debug step by step your VBScript? Are there errors?
Do you have a sample script that can be used to reproduce the issue?
Best regards
Andrea
07-07-2014 06:48 AM
Hello,
yes i tryed with debugger step by step. No errors. Ironically with debugger step by step everything works fine (even for he first time)
It looks like, when i run the script for the first time, the appended report sheets are not active, because all curves are added in the first report sheet.
But why works it wrong only for the first time and then everything works fine?
Thanks
07-07-2014 06:56 AM
Could you write a small script which reproduces the issue and post it here with the necessary files?
Best regards
Andrea
07-09-2014 04:10 AM
Hi
i think i solved the problem by myself.
I inserted "Call PicUpdate" in between as a intermediate step, and now it works fine (even running the script first time)
Thanks everybody