I'm trying to use "Select by Attributes" as with V8i. I'm trying to select text with some special string input in all Levels with the MS Connect Edition 10.00.00.25
But if I'm clicking through the "Select by attributes GUI" I can not input some string in the string input field. Why?
Since this command does not work yet.. I had to do a workaround,
Make a macro to replace the text that you want to select... This of course I only an example, but could be better if add the input text dialog... I hope this could help you.
Regards Guillermo Perez
'Example to select by text string = "Model Rev", and remove it 'Original Text = "Model Rev 150000 Ambient 25DEC" 'final Text = "Ambient 25DEC" ' CadInputQueue.SendKeyin "UPDATE 1 " CadInputQueue.SendKeyin "MDL SILENTLOAD SELECTBY dialog" CadInputQueue.SendKeyin "DIALOG SELECTBY " ' SetCExpressionValue "selectorGlobals.textstring", "Model Rev" SetCExpressionValue "selectorGlobals.textstringButton", -1, "SELECTBY" SetCExpressionValue "selectorGlobals.typemask", 5009, "SELECTBY" CadInputQueue.SendCommand "SELECTBY EXECUTE " ' Replace Dim ElEnum As ElementEnumerator Set ElEnum = GetElementEnumerator If ElEnum Is Nothing Then GoTo Fin_ While ElEnum.MoveNext With ElEnum.Current .Redraw msdDrawingModeErase index = index + 1 If .Type = msdElementTypeText Then Dim oTextEl As TextElement Set oTextEl = ElEnum.Current oTextEl.Text = "Ambient" & Split(oTextEl.Text, "Ambient")(1) .Redraw msdDrawingModeNormal .Rewrite End If End With Wend Fin_ CadInputQueue.SendKeyin "MDL UNLOAD SELECTBY" CommandState.StartDefaultCommand
Answer Verified By: Frank Klein
i'm sorry but if you know the text string you want to find then doesnt find replace find the text?
Currently Using V8iss10 (8.11.09.919)
and dabbling in CE update 16 (10.16.00.80)
Pwise Administrator ( yeah I passed the training course!)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Search and Replace does not select text elements, so this is not a work around for massive text changes.
since 1985: GIS, CAD, Engineering (Civil) Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads, HHK Geograf, IBr DAVID] : Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML][direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)
Frank Klein said:Search and Replace does not select text elements
Here's an alternative text search tool. It has a Select option...
Frank Klein said:This is not a work around for massive text changes
What is 'massive'? Does that tool help in your situation? Suggest ways in which it might be improved.
Regards, Jon Summers LA Solutions
Hello Lorys. The tool to select does not work (yet) for Text elements. So to me was the way to solve in many files that I have to change. So to me that work around works... As Jon Summers mentioned (I have not tried), there is anorther tool to solve this trouble.I'll try, but looks good. Regards.
Guillermo Navarro said: The tool to select does not work
Rather than tell us that something doesn't work, why not tell us what you want to achieve?
Do you want to...
I suggest you start a new post. This thread started in 2015 and is marked as answered. You appear to have a new question.