DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Diadem 2019 vs 2017 report positions

Solved!
Go to solution

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 =...

 

0 Kudos
Message 1 of 5
(2,927 Views)

I found out that in D2017 i got units in "cm",but D2019 i got "inches"

 

How can i change it to "cm"? thanks

 

d2017.png

d2019.png

 

0 Kudos
Message 2 of 5
(2,883 Views)
Solution
Accepted by topic author Lukas_Doubek

It seems this solved my trouble 🙂

 

LengthUnit       = "cm"

 

0 Kudos
Message 3 of 5
(2,880 Views)

Hi Lukas_Doubek,

 

Please can you provide an example so that we can reproduce this behavior?

 

Greetings

Walter

0 Kudos
Message 4 of 5
(2,878 Views)

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".

Message 5 of 5
(2,876 Views)