Message 1 of 1
Title block sketch textboxes not updating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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