05-19-2009 12:13 PM
Hello,
I have a script that works in Diadem 10.1 but not in 10.2.
The following script outputs 5 jpg's in 10.1 but repeats the first page in 10.2.
I can label the 5 jpg files correctly but it just copies the first page into the 4 other jpg's.
What adjustments are needed between versions.
Call GraphSheetInfos() 'Puts the number of sheets in GraphSheetCount
Dim intsheetNo
For intSheetNo = 1 To GraphSheetCount
Call GraphSheetNGet(intSheetNo) 'Puts the sheet name in GraphSheetName
Call GraphSheetShow(GraphSheetName) 'Shows the sheet in DIAdem REPORT
If intsheetNo = 1 then
If filex( filepath & T3 &"_"&GraphSheetName&".PNG") then
Call MsgBoxDisp("Overwrite existing data?", "MB_YESNOCANCEL", "MsgTypeWarning",,,MsgNotModal)
if msgstate = "IDNo" then
Call PathNameGet("Select a New Directory for Output", filepath)
filepath = dlgoutputpath
else
end if
if msgstate = "IDCancel" then
msgbox "Exiting programme"
Call Cancel()
else
end if
Else
End If
Else
End if
Call PICEXPORT( filepath & T3 &"_"&GraphSheetName&".BMP","BMP",1,768,1024,"RGB 24",100,"NoCompression",0) '...
Next
Thanks
Stagsden
Solved! Go to Solution.
05-20-2009 10:48 AM
Hi Stagsden,
I created an example based on your posted code, and it seems to work both in DIAdem 11.1 Beta2 and in DIAdem 10.2.1. Try my code on your computer and let me know what happens. If it doesn't work, perhaps this was fixed in the 10.2.1 update.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
05-21-2009 04:10 AM
Fixed with 10.2.1,
Thanks
Stagsden