2025-04-17 05:28 AM - edited 2025-04-17 05:37 AM
Hello everyone,
As noted in the subject line, when I write a label to retrieve the value of the variable OPENING_SILLHEIGHT_VALUES, the result is not what I expect. However, when I capture the same parameter using Autotext and save it, the value comes through correctly. Could someone please help me understand what I’m doing wrong?
I have attached the relevant code snippets below:
Textblock_1: retrieving the value via OPENING_SILLHEIGHT_VALUES.toHomeStory
Textblock_2: retrieving the “Sill Height to Home Story” value via Autotext
Thank you in advance for your assistance!
Define Style{2} "TextStyle" Ac_Textfont_1, Ac_Textsize_1, Ac_Textstyle_1
If Not(Label_Has_Pointer) Then Add2 Label_Position [2][1] + Label_Position [3][1], Label_Position [2][2] + Label_Position [3][2]
Txt_Val_Text = ""
if haskey(OPENING_SILLHEIGHT_VALUES.toHomeStory) Then Txt_Val_Text = Str(OPENING_SILLHEIGHT_VALUES.toHomeStory*1000, 1, 0)
_Paragraph_1 = "paragraph_1"
_Textblock_1 = "textBlock_1"
Paragraph _Paragraph_1 1, 0, 0, 0, 1, 0
Pen Ac_Textpen_1
Style "TextStyle"
Txt_Val_Text
Endparagraph
Textblock _Textblock_1 0, 5, 0, Ac_Textcharwidthfactor_1, Ac_Textcharspacefactor_1, 1, _Paragraph_1
Richtext2 0, 0, _Textblock_1
_Paragraph_2 = "paragraph_2"
_Textblock_2 = "textBlock_2"
Paragraph _Paragraph_2 1, 0, 0, 0, 1, 0
Pen Ac_Textpen_1
Style "TextStyle"
"<PROPERTY-0922861A-007D-418E-BA7F-DC356B30AB95>"
Endparagraph
Textblock _Textblock_2 0, 5, 0, Ac_Textcharwidthfactor_1, Ac_Textcharspacefactor_1, 1, _Paragraph_2
Richtext2 0, 1, _Textblock_2
If Not(Label_Has_Pointer) Then Del 1
3 weeks ago
It has been two weeks, and I still haven't been able to resolve this issue.
Could anyone please help me?