DavidQ
Industrial
- Oct 11, 2012
- 53
Hello Eng-Tips, I have a question regarding Attributes and Journal (vb). I need a user form to request and add attributes to a component part and use those attributes on a title block. So far i have identified and know how to build a user form, request the attribute and store as a variable; my question is how to show the value from a existing attribute value on a textbox (user form) to let the designer change the value or not. Form "fill_in_title_block_templ.vb" example I could extract the UF code lines and add some other code lines (form others examples) to show the value as follow:
Dim strCompany As String = "Co.SA"
Me.Attr1.Text = thepart.GetStringAttribute(strCompany)
**These lines are "<System.Diagnostics.DebuggerStepThrough()>" block form fill_in_title_block_templ example
From the error message and the original code I could guess that there is an issue regarding local and global variables on the changes I just made.
NX 7.5.0.32, trying to learn Visual Basic 2010. Only 10 months of experience with NX and a couple of weeks with VB2010...newbie
Dim strCompany As String = "Co.SA"
Me.Attr1.Text = thepart.GetStringAttribute(strCompany)
**These lines are "<System.Diagnostics.DebuggerStepThrough()>" block form fill_in_title_block_templ example
From the error message and the original code I could guess that there is an issue regarding local and global variables on the changes I just made.
NX 7.5.0.32, trying to learn Visual Basic 2010. Only 10 months of experience with NX and a couple of weeks with VB2010...newbie