Title block sketch textboxes not updating

Title block sketch textboxes not updating

ust25238
Contributor Contributor
381 Views
0 Replies
Message 1 of 1

Title block sketch textboxes not updating

ust25238
Contributor
Contributor

I am trying to populate a prompted entry field in the title block. I am using the following code

 

private void SetTextBoxValues(TitleBlock tblock, int tBoxIndex, string TextValue)
{
Inventor.TextBox textBox = tblock.Definition.Sketch.TextBoxes[tBoxIndex];
tblock.SetPromptResultText(textBox, TextValue);
Debug.Print(tblock.GetResultText(tblock.Definition.Sketch.TextBoxes[tBoxIndex]));
}

It populates the property as expected. However the text box it's self doesn't update. If you manually edit the field the value that was entered via code is there just not in the text box.

ust25238_0-1659451235886.png

If you edit in the dialog it works as expected. I have another similar routine that has to run twice in order for the text boxes to update. Any help would be appreciated. Thank.s 

0 Likes
382 Views
0 Replies
Replies (0)