Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I couldn't find a clear example of getting the value of a prompted entry from a sketched symbol (maybe I overlooked something? ), so here is a simple example in case it helps someone in the future.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Dim oDoc As Document oDoc = ThisApplication.ActiveDocument 'find the symbol by name For Each oSymbol In oDoc.ActiveSheet.SketchedSymbols If oSymbol.Name = "RELEASE FOR CONSTRUCTION STAMP" Then 'find the text box by name/label For Each oTextBox In oSymbol.Definition.Sketch.Textboxes If oTextBox.Text = "<RELEASED BY>" oString = oSymbol.GetResultText(oTextBox) 'write value to iproperty iProperties.Value("Status", "Eng. Approved By") = oString 'display value to user MessageBox.Show(oString, "iLogic") End If Next End If Next
Solved! Go to Solution.