Message 1 of 4
Prompt Entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I need to create prompt entry in multiple sheet but with different value and i've make prompt entry as an iproperties custom to set at Form. But, when i insert value, i found that every sheet i create has same value.
Dim oSheet As Sheet = ActiveSheet.Sheet Dim oBorder As Inventor.Border = oSheet.Border If oBorder Is Nothing Then Return Dim oPromptTextBox As TextBox For Each oTextBox As TextBox In oBorder.Definition.Sketch.TextBoxes If (oTextBox.Text = "<ITEM>") Then oPromptTextBox = oTextBox Continue For End If Next If oPromptTextBox Is Nothing Then Return Dim oPromptEntry = oBorder.GetResultText(oPromptTextBox) Dim result As String = InputBox("Input ITEM Value", "ITEM", oPromptEntry) oBorder.SetPromptResultText(oPromptTextBox, result) iProperties.Value("Custom", "ITEM") = ITEM