MicroStation Forum - FIND AND REPLACE TEXT STYLE
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

FIND AND REPLACE TEXT STYLE

by
Kirk Dunlap
Expert
Created (Edited ) in MicroStation Forum

I am placing notes that call out material and below that callout and a note.

My workflow is tedious.

Place note

TYPE IN THE MATERIAL CALLOUT WITH A  TEXTSYLE THAT HAS A BOX AROUND THE MATERIAL CALLOUT

THEN FOR THE LINES BELOW, I SELECT A NEW STYLE WITHOUT THE BOX.

image

I would like to automate this

I thought a good way would be

1. place all notes without the box

2. Select all notes

3. find all the text WD1 and replace the text-style for only WD1

anyway I could do this? Batch check text style

image

what would be nice is to have a list of common callouts that would be changed to have the text-style changed

Topics: text

7 Replies ( Latest reply by
)

Simple solution is to place one Note with correct format, copy it, edit.

That could be done with a custom program, but not with plain MicroStation tools. I can't think of a way in Plain MicroStation to select only a part of a text node (outside of the editor) - Select by Elements can filter by a string but it selects the entire element. And that only works for Text elements and Text Nodes. I don't think it works on Notes. Find (of Find & Replace Text) can find the string, but it is not a selection tool. And then there's the changing text style of only part of the note without using the text editor, which I don't think can be done without some programming magic.

and I need some programming magic that's above my skill set

I will place one note and copy it with the keyin below if the note is the same

this doesn't always keep the textstyles, but it works well in most cases

LV=NOTE-CW;CHOOSE;%d;EDIT TEXT;DX=0;place dialogtext

Because it's easier and faster than typing each note out and changing styles back and forth. Place one note with the styles the way you want them, and it's already set up.

Your only real options are to place every note every time, switching styles as you type
or
to place one note with the correct styles, copy it all over and edit it as needed.

There are no native tools that can do what you are asking (find part of a note and change style on only those characters). You would have to create something custom, and I think it could be a rather complex tool due to the inflexibility of Note elements.

The closest I can think of would be a manual process of placing all the notes with one style, using Find (of Find/replace text) to work through your drawing to find the string you want to change, and manually editing the text to change the style of that string. But that's nothing you could do with a batch process - it would be one element at a time.

I don't know if Text favorites could simplify the note placement in the first place...Maybe if you had one favorite for the first part and another favorite for the second part it might save you a step or two while placing the notes. But I haven't played around with text favorites yet enough to know.

Yep, that makes sense. Place it correctly, then just copy and edit. Notes are SO much easier to place correctly the first time than they are to try to change style after they are placed. It probably wouldn't take significantly more time than typing and placing them all.

That is what Im trying to avoid. I'm placing the note with the 1st line with one textstyle and then switching styles on the lines below.

Why place it , copy and edit ? 

This is how I place the note.