How do I apply a text style to a text field? For example, suppose I want to annotate a shape with its perimeter and area. The screenshot below shows the result..
Each line of text is a text node containing two text elements. The text on the left is created with my text style. The numbers on the right are text fields, showing some element properties and an Item Type I've assigned. Whatever I attempt, I can't persuade the text field to accept my text style. They persist on displaying the same dark grey background. Although, curiously, they seem to have taken the font from the text style.
Unknown said:Settings > User > Preferences > Text > Hide Field Background
Well, that does what it says...
However, the text that contains the field still fails to accept a text style. I want the numbers on the right to look just like the captions on the left.
Regards, Jon Summers LA Solutions
Hi there
We've just tested this out in PowerDraft Update 13 and it's still not functioning correctly. In the image below, random text was typed in "fbvcvb" and a field for the length of an element was placed.
As before, the normal text inherits the text style's property (background colour 32, offset 0.25 on all sides) while the field still fails to pick up this part property of the text style.
Kind Regards
It appears that Enhancement # 1031410 was recently included in MicroStation CONNECT Edition (Update 13) which introduces the configuration variable _USTN_TEXTFIELD_BACKGROUND_PREFS that allows you to define and use a Text Style with these Text Fields.
https://communities.bentley.com/products/microstation/w/microstation__wiki/43229/changing-the-text-field-background-preferences
RegardsAndrew BellTechnical SupportBentley Systems
Ah, that explains it! Can't wait for it to come to OpenRoads Designer!
Thanks, Andrew!
I can confirm that a solution is available in Connect Update 13. This is from Bentley via a Service Ticket I filed last week.
Enhancement # 1031410 had previously been raised to address this issue which has now been completed and included in the operation of MicroStation CONNECT Edition (Update 13). This has now been released and should work as per the solution provided.
_USTN_TEXTFIELD_BACKGROUND_PREFS 1. If variable is set to 0 then both check boxes are off 2. If variable is set 1 then Hide Field Background checkbox is checked. 3. If variable is set 2 then both Hide Field background as well as Apply Field Background from Text style is checked and enabled.
What this does is check the boxes in the user preferences via configuration to turn the background off. Once this one is checked and additional box is unlocked and can be checked that "Applies Field Background from Text Style". This hides the field background but now allows a background to be applied.
In addition, in my testing discovered that in my personal preferences if I toggle ON “Hide Field Background” and “Apply Field Background from Text Style”, then toggle OFF the “Hide Field Background”, the background from the text style is still working with the field background visible, working just like V8i.
Try testing this for yourself. I have reported my findings back to Bentley on this specific workflow and have requested an additional option in the config var to allow this scenario to support the visibility of what is a field and support text style background, primarily for printing.
Just tested with 10.15.02.11 ...an item text field can have an editable style, but the background setting of the style is still ignored.
The background "element mask" for the text (which is part of the text style properties) is not applied, so the text characters of the field are on top of the graphics the text style background settings should obscure.
The user preference setting for field seems to make no difference other than displaying the background range of the field which could be within a text string.
So Jon's original enhancement request Enhancement 641151 is not functional in this version.