select by attributes string input field for text and textnodes greyed out [Connect]

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?

Parents
  • 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 :-)

  • Search and Replace does not select text elements

    Here's an alternative text search tool.  It has a Select option...

    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.

  • 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....

    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 

  • 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...

    1. Find text that matches some criteria
    2. Replace text that matches some criteria
    3. Resymbolise text that matches some criteria
      • What criteria?
    4. Modify text in the active DGN model
    5. Modify text in all models
    6. Modify text in many files
    7. Something else?

    I suggest you start a new post.  This thread started in 2015 and is marked as answered.  You appear to have a new question.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • 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...

    1. Find text that matches some criteria
    2. Replace text that matches some criteria
    3. Resymbolise text that matches some criteria
      • What criteria?
    4. Modify text in the active DGN model
    5. Modify text in all models
    6. Modify text in many files
    7. Something else?

    I suggest you start a new post.  This thread started in 2015 and is marked as answered.  You appear to have a new question.

     
    Regards, Jon Summers
    LA Solutions

Children
No Data