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
Lorys,
This can be done through Batch Process. It's been a long time since I had to do this, but it can very touchy. Everything in the companion text file needs to be exact. I am not able to access my office PC at the moment to find the exact format of the key-in. Once I can gain access I will provide the key-in. I think your second line is close, but remove "ON" from that string. If you have MS_REFDIR set and your file is in the path you do not need to identify the full file path.
level set override color 1 file:refile.dgn DRAINAGE_PIPE
Power InRoads v8i V08.11.07.615
Thanks but I think it is because I have a dgnlib pathed in configs that has the same level names with assigned colours etc but no orrides assigned.
But I'll try again, same result didnt work with or without path, but I can do it manually with the levelmanager overrides choose the level and a colour.
This really frustrating as this is the most basic function for most drafters you build everything and later your bosses want you to change a colour in an attached ref thats used everywhere... no problem for me in nested refs I change it there and it works every where
Lorys
MicroStation user since 1990 Melbourne Australia.click link to PM me