I have a file called active.dgn
to which is attached refile.dgn
now I have a level libray attached through the dgnlib.
I want a key in or script or vba to do what I can do by hand in the level manager, but typically the ref file is attached to lots of drawings no just active.dgn
now this is what I can do by hand in each active drg
Level manager
Select the ref file attached
set level drainage_pipe override colour to blue( 1) from its original not by level red (3)
This works if I do it by hand but I have 50 files or more, and I dont want to do this by hand...
I thought of doing it in the ref file but it doesnt come thru to the active file unless I detach and reattach not desirable...ie if changes are made after it was attached as ref...
I tried the level synchronise keyins but it just reset all the colours to the bylevel colours in the attached dgnlib so lost the manual oride setting colour blue (1)
I read in old post you can only do it thro batchpro script...
It had something like this but it doesnt do anything i think its because the dgnlib wont let me change it...
(but why can I do it by hand in the level manager of active or even change it in the ref and detach and reattach and that works! and I''m still changing what is meant to be governed by dgnlib!)
As I said this batchpro script didnt do anything...!
level set override color on file:F:\temp\refile.dgn level set override color ON 1 file:F:\temp\refile.dgn DRAINAGE_PIPEupdate view extendedfiledesign
So I am at the office and found my key-ins. The format is
LEVEL SET OVERRIDE COLOR ON file:58758_C01_CT_XP_SURV01_01.dgn V-BLDG-OTLN
LEVEL SET OVERRIDE COLOR 1 file:58758_C01_CT_XP_SURV01_01.dgn V-BLDG-OTLN
Power InRoads v8i V08.11.07.615
Microstation CONNECT U13 10.13.01.01
ORD CONNECT 2019 Release 2 U7 10.07.03.18
ProjectWise 10.00.03.217
One other thing to try, add a logical name to your reference file and replace the reference file name with the logical name in the key-in string. I recorded a macro to turn on a level that was off and it picked up the logical name of the reference file in the recorder. Using the reference file name would not work, but for the other key-ins the ref name worked.
I'm not yet using mwlong's script, but from my testing if the xref is a nest and its attached to heaps of drawings, I go to the nest and make the symbology overrides thro the level manager applied to the ref in the nest , save settings return tho the drawing that the nest was attached to ie the drg model with title block over it, and WOW the symbology has updated without having to detach and reattach ...even though the actual sub xref has the original symbology with no overrides... this is perfect, however as I don't use sheet models most of my projects I don't remember if it works for those because now the nesting is 3 deep to get it in the sheet model, but I vaguely recal it worked that way when I was doing sheet models for one client because of the overrides all and never setting in the ref manager... But if mwlong's script works with batchpro.. it will be awesome goal for us drafters!
Lorys
MicroStation user since 1990 Melbourne Australia.click link to PM me