Missing Trailing Zeros in Title Block display

Missing Trailing Zeros in Title Block display

tim.gray2S8N5
Explorer Explorer
400 Views
2 Replies
Message 1 of 3

Missing Trailing Zeros in Title Block display

tim.gray2S8N5
Explorer
Explorer

Our new Drawing Title Block has a dynamic tolerance table, the iLogic form allows selection of 3 different tolerance levels (Standard, Medium, Fine), some iLogic code then adjusts the tolerance value for each tolerance band in line with the selected level.

 

Problem is that any value above 0.x is rounded up and it loses it's trailing zeros.

    (Two empty rows are to be deleted)

 

Tolerance.PNG

 

The relating iLogic code is below:

     (The code above the IF statements was found online and modified to suit)

 

Tolerance Code.PNG

 

Any ideas to resolve this?

0 Likes
Accepted solutions (1)
401 Views
2 Replies
Replies (2)
Message 2 of 3

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @tim.gray2S8N5 

You could try using properties of type Text instead of Number. Just put quotation marks around the value to make it a string instead of a double. Like this:

iProperties.Value("Custom", "TOL2") = "1.0"

 

Message 3 of 3

tim.gray2S8N5
Explorer
Explorer

Well, that was an easy solve - thanks.

0 Likes