04-23-2020 01:26 PM
Hi,
im testing Diadem 2019 and i got scripts running in 2019.
I got multiple errors, that my positions of objects in REPORT panel are out of range.
Can i read somewhere what you changed exactly about the positions?
i used to call ReportMasterAdd to add masterlayout to sheets, but in D2019 its obsolete, so im using Report.Settings.MasterLayout.Connect
Its really not compatible or im doing something wrong? thanks for help
errors looks like:
The "7.675" value is outside the valid range: [0, 7.08661417322835].
The "12.223" value is outside the valid range: [0, 7.08661417322835].
.....
using codes like this:
oSheet.Objects("SteeringWheelVertical").Position.ByCoordinate.X1 = ...
oCircle.Position.ByBorder.Top =...
Solved! Go to Solution.
04-24-2020 04:34 AM
I found out that in D2017 i got units in "cm",but D2019 i got "inches"
How can i change it to "cm"? thanks
04-24-2020 05:12 AM
It seems this solved my trouble 🙂
LengthUnit = "cm"
04-24-2020 05:27 AM
Hi Lukas_Doubek,
Please can you provide an example so that we can reproduce this behavior?
Greetings
Walter
04-24-2020 05:31 AM
Sorry, maybe its better to delete this thread because it could confuse some people. it was my fault, because in my script i got fuction to set default values to diadem for our scripts, i got it set in D2017 but i had run it in D2019 and didnt configure it to set the defaults, where this command is placed to set units to "cm".