Helllo,
Thanks :)
works
It works
Unknown said: Helllo, I have question about how to write script to Batch process, which inludes copying objects from references to dgn? I have about 500 files, which are empty and are connected with another files with reference. I want to copy all objects from reference to my 500 files. I'm a layman. I made only 1 file, which moved some objects from 1 layer to another, but here: I tried to connect some sentences, but it didn't work: #Clear SelectBy list reference display on *reference levels on * *;selview allon=*;selview allreference display on borderreference levels border;selview all selectby type all;selectby execute;makecopy on;selectby execute;xy= DELETE THIS LINE and replace with "reference merge all" #----------------------------------------------------------------------------------#fit viewFIT VIEW EXTENDED #----------------------------------------------------------------------------------#file>save settingsfiledesign #----------------------------------------------------------------------------------#file>savesave design
I have question about how to write script to Batch process, which inludes copying objects from references to dgn? I have about 500 files, which are empty and are connected with another files with reference. I want to copy all objects from reference to my 500 files.
I'm a layman. I made only 1 file, which moved some objects from 1 layer to another, but here:
I tried to connect some sentences, but it didn't work:
#Clear SelectBy list
reference display on *reference levels on * *;selview allon=*;selview allreference display on borderreference levels border;selview all
selectby type all;selectby execute;makecopy on;selectby execute;xy= DELETE THIS LINE and replace with "reference merge all"
#----------------------------------------------------------------------------------#fit viewFIT VIEW EXTENDED
#----------------------------------------------------------------------------------#file>save settingsfiledesign
#----------------------------------------------------------------------------------#file>savesave design
See my editing of your script above in red, if you dont do this you will have duplicates of all the elements from the ref files
The Merge will do the copying for you but remember you only get the elements that are in levels that are turned on
so you previous commands to turn on levels is correct..
Beware if you have nested refs ie refs inside refs and you want to turn on all level you need to have extra *.* -> * to turn on levels that are off in the nest..
But I dont know if thats a good thing either if the files have levels off for presentation both in the ref and nest do you still want capture those elements?
for more script info on levels look in help especially the special command " -> " for nested refs
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me