Hi All,
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?
Hello.
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[0]", 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?
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Hi,
Search and Replace does not select text elements, so this is not a work around for massive text changes.
Regards
Frank
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
What do you mean Find Replace Text doesnt find Text? The Find replace is specifically for Text yes it is limited but it does find text, what kind of text are you looking for?... Jon Summers tool has much improved the find text tool with his own tool even finds tag text and text nodes....
Hello again.
You are right, I confused you.
First, If you see the main topic is "Select by". If you want to replace you can do it with out trouble. But if you want to select a Text with the tool "Select By", it does not work. In fact there is a report of this trouble. So, if you see my work araond this is not only to find and replace, is to select the text and change some parte of the string.
'Example to select by text string = "Model Rev", 'Original Text = "Model Rev 150000 Ambient 25DEC" 'final Text = "Ambient 25DEC"
If I try to replace I have to know the model review in this case (150000), In that way works my macro.I hope I've been myself clear.