Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So attempting to change on a weld material and then prompt a user to change if it's not the default.
95% our weld material is
A STEEL- HR- A36
I checking to see if the user changed the material when converting to a weldt. If it doesn' t match our default material check, then I am prompting them w/ a YES / NO question.
All works fine but I can't get the material to change when they answer YES...
What am I missing in the code?
Thanks in advance....
Here's what I got....
'This displays the material of the welds DTP_PropertySet = ThisDoc.Document.PropertySets.Item("Design Tracking Properties") oWeldMatl = DTP_PropertySet.Item("Weld Material").Value MessageBox.Show(oWeldMatl, "iLogic") 'Checks to see if the material is A-36 mild steel, if not, prompts to change the material If oWeldMatl <> "A STEEL- HR- A36" Then question = MessageBox.Show("The WELD material is not set to steel. Would you like to change it to Mild Steel?", "WELD Material",MessageBoxButtons.YesNo) If question = vbYes Then 'Set Weld bead material 'DTP_PropertySet.Item("Weld Material") = "A STEEL- HR- A36" oWeldMatl = "A STEEL- HR- A36" MessageBox.Show(oWeldMatl, "WELD Mat'l Changed") End If
Steve Hilvers
Inventor Certified User / Vault Professional Influencer
Inventor Certified User / Vault Professional Influencer
Solved! Go to Solution.