Need help working from home with your Bentley software? We're here to help - click here
I'm using the batch convert process and have already set all elements to "color by level" but now would like to set all levels to a single color (say for instance, red).
I've found and used the Color Mapping Table %unmapped -> %bylevel wildcards.
...is there something silimar for Level Mapping Table to select all levels and change to color red?
try in a mvba module
Sub alltored()For Each rr In ActiveModelReference.Levelsrr.ElementColor = 3NextActiveModelReference.Levels.RewriteCadInputQueue.SendCommand "active color=bylevel;choose all;change color;point absolute"End Sub
For Each rr In ActiveModelReference.Levels
rr.ElementColor = 3
CadInputQueue.SendCommand "active color=bylevel;choose all;change color;point absolute"
I would love to use vba but... i'm setting this up for someone else and using the batch convert tool/process is the most end-user friendly when trying to make changes or edits to the process in the future. I do very much like this code though!!
Additional info I just found - the items I'm trying to change were apparently created with TriForma and I get an error message "TriForma has intentionally restricted changes to this element"
You can use the keyin "level set bylevel color 3 *"
to change all levels to have a bylevel color of color number 3 (which in the standard color table is red).
Put that in a text file and use the Batch Process tool to process all the files you want.
You could also use Level Overrides and turn on the View Attributes > Level Overrides setting, instead of physically changing the colors.