I can use PowerSelector keyins to almost create a selection of all text elements. Text, text nodes and dimensions are available. However, notes are not available so I cant select notes text as well. Is there any other keyin or macro that might be available to also select notes, or to select all text elements?
Jovan, hello!
I am trying to get more clarity on the use of the key-in, as I am stuck with couple roadblocks trying to select particular textnode with particular text in there ( yes, it gets very narrow in my case, as I need to select only one of several texnodes, ont the same level, with the same text formatting and color etc.)
so, my command currently is the following:
MDL LOAD SELECTBY
SELECTBY MODE INCLUSIVE
SELECTBY OPTIONS SELECTION
SELECTBY ON
SELECTBY LEVEL NONE
SELECTBY LEVEL G-ANNO-TITL
SELECTBY TYPE TEXTNODE
SELECTBY EXECUTE
currently I am stuck with the level selection, as it does not select specific level;
another issue I am having is selection of the text with the wildcard ( I need all the drawings of AXXX series, so text wildcard would look like "A*"
Thank you !
Try this VBA macro
Sub SelectNoteElements() Dim oElement As Element Dim oEnumerator As ElementEnumerator Set oEnumerator = ActiveModelReference.Scan ActiveModelReference.UnselectAllElements Do While oEnumerator.MoveNext Set oElement = oEnumerator.Current Dim ph As PropertyHandler Set ph = CreatePropertyHandler(oElement) If (True = ph.SelectByAccessString("Description")) Then If (ph.GetValue = "Note") Then 'Debug.Print ph.GetValue + " - "; oElement.Type ActiveModelReference.SelectElement oElement End If End If Loop End Sub