Does anyone know how to select all lines in a file by their name using a key-in.? I found the following for Cells at the link below and it works great. I'm trying to do the same for linestyles and the name of the linestyle is "EXOHE" which is a custom linestyle. I'm using ORD Connect but posted here because it seems more like a MicroStation question.
https://communities.bentley.com/products/microstation/f/z_-archived-microstation-v8-xm-edition-forum/80860/using-a-keyin-to-select-cells-by-a-name
Don't know of a key-in, but Select By Attributes will do this.
Connect r17 10.17.2.61 self-employed-Unpaid Beta tester for Bentley
Why not use Power Selector? There is a tab for line style. Just switch to that tab and find the line style, click on the name and it will select all elements using that style. No need for a keyin.
Microstation CONNECT 10.17.00.209
ORD CONNECT 2021 R1 10.10.1.3
Microstation v8i SS 10 08.11.09.919
Power InRoads v8i 08.11.09.615
ProjectWise 10.0.3.453
My ultimate goal is to use this key-in as part of a script to select a LineStyle by a certain name and change it. In the script I would be doing this to a lot of LineStyles in Multiple DGN files as well as Cells. The Cells part I've figured out. Just can't figure out the LineStyle part.
Believe you can record a macro then pluck the needed commands/settings for use in your key-in. {brute force option, others are more qualified to answer this}
Bob Rayner said:Believe you can record a macro then pluck the needed commands/settings
mwlong said:Why not use Power Selector?
I haven't had much luck with vba record and powerselector but with the selectby attributes tool I've been able to get down to the active part I need to pluck ...
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