jmarkus
Mechanical
- Jul 11, 2001
- 377
I have a journal which sets certain attributes displayed as notes on a drawing. The journal uses windows forms to show and allow editing of the current attributes.
In case the attributes are not actually assigned to the notes (i.e. the user typed in the drawing title as "MY PART" instead of using <W@TITLE>) there are buttons on the form to allow the user to select a note and it will replace the manual text with the correct attribute reference (e.g. <W@TITLE>.
The form works without the buttons for manually assigning text to the attributes, and I can get the code working in NX separately to select the text and assign it with the attribute value, however...
when I try to add the code to select a note so that clicking the button runs the function to select the text, I find that I cannot actually select anything (even though the NX selection dialog comes up). It is as if the focus is fixed on the Windows Form and I don't know how to surrender control back to the NX interface to be able to select objects.
I have heard that windows forms are not fully supported through VB.NET NX Journaling, so I may be up against a wall here, but if anyone has any suggestions, it would be appreciated.
Thanks,
Jeff
In case the attributes are not actually assigned to the notes (i.e. the user typed in the drawing title as "MY PART" instead of using <W@TITLE>) there are buttons on the form to allow the user to select a note and it will replace the manual text with the correct attribute reference (e.g. <W@TITLE>.
The form works without the buttons for manually assigning text to the attributes, and I can get the code working in NX separately to select the text and assign it with the attribute value, however...
when I try to add the code to select a note so that clicking the button runs the function to select the text, I find that I cannot actually select anything (even though the NX selection dialog comes up). It is as if the focus is fixed on the Windows Form and I don't know how to surrender control back to the NX interface to be able to select objects.
I have heard that windows forms are not fully supported through VB.NET NX Journaling, so I may be up against a wall here, but if anyone has any suggestions, it would be appreciated.
Thanks,
Jeff