Search/Get "Text" value inside Definition property of 3D Annotation Set
Search/Get "Text" value inside Definition property of 3D Annotation Set
(OP)
Hello All,
I am able to select "ENG" property in 1st picture below as per my short macro below. However, I do not know how to search and get the text (i.e. PLATE) in the definition of "ENG" as seen in second picture below.
Please help me out.
Picture 1:
DEFINITION OF "ENG" property
Picture 2:
My short macro
'//=================
Sub SEARCH_PLATE_IN_NOTES()
Dim oSel As SELECTION
Set oSel = CATIA.ActiveDocument.SELECTION
oSel.Clear
oSel.Search ("Name = ENG*, All")
MsgBox "HERE" '// Indicates macro got to this point
End Sub '//// End of this Subroutine
'// ==========================
Thank you in advance
I am able to select "ENG" property in 1st picture below as per my short macro below. However, I do not know how to search and get the text (i.e. PLATE) in the definition of "ENG" as seen in second picture below.
Please help me out.
Picture 1:

DEFINITION OF "ENG" property
Picture 2:

My short macro
'//=================
Sub SEARCH_PLATE_IN_NOTES()
Dim oSel As SELECTION
Set oSel = CATIA.ActiveDocument.SELECTION
oSel.Clear
oSel.Search ("Name = ENG*, All")
MsgBox "HERE" '// Indicates macro got to this point
End Sub '//// End of this Subroutine
'// ==========================
Thank you in advance





RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
CODE --> VBA
indocti discant et ament meminisse periti
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
CODE -->
indocti discant et ament meminisse periti
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
CODE -->
if you need the string then use
CODE -->
indocti discant et ament meminisse periti
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
I now get to the text string display on the monitor as per your code above: myTextasString = CATIA.ActiveDocument.Selection.Item(1).Value.Text.Text
But how can I search/obtain above text stream for word "PLATE" or any other word (as strings) in the text stream accessed above?
Is there any CATIA command or macro method to achieve this?
Thank you in advance
RE: Search/Get "Text" value inside Definition property of 3D Annotation Set
indocti discant et ament meminisse periti