select by text style

Hi,

Is there an option in Mstn to select text by text style. I was looking for it in select by attributes but i can't find it.

Maybe anybody have some macro for it?

Regards,

Marek

Parents
  • Hi Marek,

    you can use the Element Selection tool. Expand its Tool Settings (Extended Settings) and enable the Text Style tab via context menu.

    Regards,
    Joerg

    Answer Verified By: Marek Gaworski 

  • Joerg,

    How about with a key-in command so that you could do it programmatically?  If i try to record a macro of my steps it does not record any of the clicks that i use to create the selection from the selection box.

  • have you tried in the keyin window  with first run the powerselector then  keyin "set item tool settings"  this helps me find a lot of keyins and their expansions you have sometimes trial and error to see the extra settings value for some tools ie  =0  or 1 or 2 etc differnces..

    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 

  • Lorys

    Thanks for the reply, Have you tried this?  Am I doing something wrong or not seeing the same results you are seeing?

    When I start the selectby tool [ I tried 2 ways 1.) used the selectby icon and 2.) used the key-in mdl load selectby ] then used the key-in "Set item toolsettings" with the key in browser expanded.  I get NO results in the fourth frame like I do using the same command for say the "place line" command.

    I should also note that using the key-in "mdl load selectby" opens what appears to be the legacy tool without the newer expansion variables. (i.e. dimension style, priority, transparency etc...)

  • Bottom Line - here is the outline of my problem

    -We have not converted to V10 CE yet so we are still using V8i.

    -The Translation of text and Dimension masks have been broken for years in that when they convert to a dwg the background field does not automatically convert to the acad background for some reason (even though that functionality is in both programs.)

    -because of this we eliminated the use of background masking in our text and dimension styles until a translation solution is found.

    -one of my users missed the memo

    -now i have hundreds of drawings that have text that is overshadowed by a cyan background mask in the acad versions.

    -looking for either a solution to:

    a. get background masking to translate properly - Bentley has appeared to have closed any further progress on this bug as they say it has been fixed in CE (but from what I can tell it actually hasn't)  i do not expect any help with this in V8i

    b. through a vba find all instances of a textstyle or dimstyle in ustation, select them and change them to a new dimstyle (without background masks)

    c. figure out how to develop and AutoCAD LISP routine to fix the problem in my .dwg files

  • ok your on the right track you have to find find the bad text style and replace it with a different  text style.. alternatively

    edit the text style in a stand alone dgn or dgnlib with the same name but has no bg fill  use the import text style  as a script set it to the external dgn to go get it and update the dgn  problems only if the text style was the None...

    In acad you need to have the level called masking or use backwash or wipe or something silly  like that  dont use acad enough  to be exact and as you have  found  the bg fill doesnt translate well in acad  especillay cells, circles and text..

    choose element     >  brings up power selector

    hmmmmm

    Its gotta be a vba   programming thing  and you could use that  to select by  the style call say bg fill and change the text style to the imported one called nobgfill from a specific dgn or dgn lib, youd have to import first so its avaialble then  find replace the style.. I have worked this out yet as I'm terrible at vba and Basic wont record these  functions

    I found a tenuous link which hints at changing the style so as mary said the vba help shout point to what to use for text style = no fill or fill =none or something like that...

    communities.bentley.com/.../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 

Reply
  • ok your on the right track you have to find find the bad text style and replace it with a different  text style.. alternatively

    edit the text style in a stand alone dgn or dgnlib with the same name but has no bg fill  use the import text style  as a script set it to the external dgn to go get it and update the dgn  problems only if the text style was the None...

    In acad you need to have the level called masking or use backwash or wipe or something silly  like that  dont use acad enough  to be exact and as you have  found  the bg fill doesnt translate well in acad  especillay cells, circles and text..

    choose element     >  brings up power selector

    hmmmmm

    Its gotta be a vba   programming thing  and you could use that  to select by  the style call say bg fill and change the text style to the imported one called nobgfill from a specific dgn or dgn lib, youd have to import first so its avaialble then  find replace the style.. I have worked this out yet as I'm terrible at vba and Basic wont record these  functions

    I found a tenuous link which hints at changing the style so as mary said the vba help shout point to what to use for text style = no fill or fill =none or something like that...

    communities.bentley.com/.../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 

Children
No Data