You are currently reviewing an older revision of this page.
Custom line style scales got you confused? Not any more with this short article.
2004-02-11 Original posting date.
2004-09-16 Updated for clarity.
2006-01-04 Updated to include MicroStation V8 XM Edition.
2006-12-06 Updated for MicroStation V8 XM Edition SELECT Update #1.
2007-07-19 Updated for clarity
V7, V8, XM - Keyin to change line style scale of existing elements:
If you want to change the custom line style scale of existing elements, use this keyin: change linestyle scale x where x is the new scale. For multiple elements, first create a selection set, then use the keyin. Note that this keyin will not set or alter the Scale Factor in the Line Style dialog as shown below.
V7, V8, XM - Keyin to change the Scale Factor value in the Line Styles dialog:
Use this keyin to set the Scale Factor in the Line Styles dialog:
mdl load calculat;calculat tcb->lineStyle.scale=x where x is the new value.
Note that this change will only be evident once the dialog has been reloaded.
V7 and V8 - Keyin for Scale Factor switch:
When the Scale Factor switch is turned off, you can use this keyin to turn it on:
mdl load calculat;calculat tcb->lineStyle.modifiers=1|tcb->lineStyle.modifiers
Although it is effective as soon as the keyin is executed, the dialog won't reflect the change until it's reloaded.
V8, XM - Keyin to set the Global Line Style Scale:
To change the global display scale of custom line styles, use this keyin:
active linestyle scale x where x is the new scale.
The change will be evident once you update the view.
Note, this is a global keyin and will also change the display of line styles in attached references.
V8 XM Edition - Design setting to set the Global Line Style Scale:
In MicroStation V8 XM Edition, every model can have a global line style scale factor applied to the line styles within the model.
Set it via Settings > Design File > Element Attributes
XM 08.09.04.xx - Control the custom line style scale of references:
The scale of line styles within a reference are affected by the global line style scale of either the active model, the referenced model, both, or neither.
These settings are selected when attaching the reference and are found at the bottom of the Reference Attachment Settings dialog.
None - Neither the active model's nor the reference model's global line style scale is used to scale the cosmetic custom line styles.
Master - The active model's global line style scale is used to scale the cosmetic custom line styles.
Reference - The referenced model's global line style scale is used to scale the cosmetic custom line styles.
Master * Reference - The active global line style scale is multiplied by the referenced models' global line style scale to scale the cosmetic custom line styles.
The keyins to control this setting are:
REFERENCE SET GLOBALLSSCALE= BOTH [file_spec] | MASTER [file_spec] | NONE [file_spec] | REFERENCE [file_spec]
Lastly, you can also set these options with the following configuration variable:
V8 - Control line style scale via Level Manager:
If you're using the Level Manager to define your level colour, weight and style, then you can control the scale via the level properties dialog.
First define your symbologies as you would for any other level.
Now to set the scale, highlight the level entry and do a right click on it's name. From the resulting dialog, select the Styles tab, enable the Scale Factor switch and enter the desired value.
V8 - Change line style scale when Level Symbology is ON:
If you prefer to change the line style scale when Level Symbology is on, first set the Symbology picker to Overrides. Then go to the Styles tab of the levels properties dialog and adjust the scale factor in the Override Custom Line Styles section as shown below.
V8 - Controlling a references line style scale:
Now the fun stuff happens. If you want to control the line style scale of elements in a reference, simply select the appropriate reference level from the Level Manager and adjust the properties as described above.
Bentley's Kirk Elwell adds this: "The Scale Line Style toggle on Reference Attachment settings applies the Scale (Master:Ref) value to the line style. The actual scale of the line style would be found in the reference attachment under Element > Line Styles. These two factor together and will affect the display of the reference as it appears in the active file."
Note if you resynchronize the levels, you may end up resetting the scales back to the original values found in the reference.