Hi @shivam7C2Q8,
It is a bit tricky but achievable. Here is an example of mine :
Dim actDoc As Inventor.DrawingDocument = ThisApplication.ActiveDocument
Dim s As Sheet = actDoc.ActiveSheet
Dim t As TitleBlock = s.TitleBlock
Dim tDef As TitleBlockDefinition = t.Definition
For Each txtBox As TextBox In tDef.Sketch.TextBoxes
If txtBox.Text = "<AUTEUR>" Then MsgBox(t.GetResultText(txtBox))
Next
Basicly prompt entries are created when adding a text box in the title block, and formating as folowing : <PropertyName>
So basicly I just search in the text boxes collection and fine the one that I'm looking for, then see it's value.
You could use then a small function like this :
Sub main
Dim val As String = find_value("AUTEUR")
MsgBox(val)
End Sub
Function find_value(propertyName As String) As String
Dim actDoc As Inventor.DrawingDocument = ThisApplication.ActiveDocument
Dim s As Sheet = actDoc.ActiveSheet
Dim t As TitleBlock = s.TitleBlock
Dim tDef As TitleBlockDefinition = t.Definition
For Each txtBox As TextBox In tDef.Sketch.TextBoxes
If txtBox.Text = "<" & propertyName & ">" Then Return t.GetResultText(txtBox)
Next
Return "Property doesn't exist"
End Function
Kind regards,
FINET L.
If this post solved your question, please kindly mark it as "Solution"
If this post helped out in any way to solve your question, please drop a "Like"@LinkedIn @JohnCockerill