Ctrl b, brings up the selection box for DataFields on/off, LineWeights on/off
I have a macro that will change the DataFields to on, the Line weights to Off, but I do not know how to put in a command for the ALL at the bottom of the selection. Every drawing I do in Bently I have to use the pull down or the Ctrl B, but I only do the above two things. I already have a MACRO, that sets my Layer Colors, Angle, Scale and selection colors, I would really love to add a section to simulate the on for Datafields and Off for the Line Weights.
I am sure a VB or Bently programmer know how, but I do not .............. :-( need help, Please Richard
Here is a snip of code for your VBA that you can use to set Data Fields ON and Line Weights OFF.
' Open Views 1 - 4 and set View Attributes
i = 1
Do While i < 5
With ActiveModelReference.DesignFile.Views(i)
.IsOpen = True
.DisplaysDataEntryRegions = True
.DisplaysLineWeights = False
End If
End With
Loop
Depending on how many views you like to have open, you might wish to edit the "Do While" number.
HTH
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2