How to Export all Levels form Multiple drawings at once??? is there any Batch Process Commands for that.
I have 50 Drawings,i Want to export all 50 Drawing levels at Once.
Try this key-in "level library export d:\levels"
this Key-in Export Single Drawing Levels. I want to Export Multiple Drawings at Once.
I Put your Key-in in batch Process. But its Show same Result.
You should be able to manipulate Batch Process to produce individual files. You may need to edit the .bprc file
Connect r17 10.17.2.61 self-employed-Unpaid Beta tester for Bentley
This looks like a programming requirement. You should get started with Learning VBA.
I found the following sample code in my backups... Will create an output CSV file "design-file-name.csv" with Level Names. Use the VBA in Batch Process.
Option Explicit Sub LvlReportActiveModel() Dim folder As String Dim parts() As String Dim activefilename As String Dim outFileName As String Dim lvl As Level parts = Split(ActiveDesignFile.FullName, ".", -1) activefilename = parts(LBound(parts)) outFileName = activefilename & ".csv" Open outFileName For Output As #1 Print #1, "Level Name, File Name, Model Name" For Each lvl In ActiveModelReference.Levels Print #1, lvl.Name + "," + ActiveModelReference.DesignFile.Name + "," + ActiveModelReference.Name Next Close #1 End Sub
Getting Started with Visual Basic
Book: Learning MicroStation VBA
Training: MicroStation VBA Programming Learning Path
you could create a new file then ref attach all the folder of dgns via explorer drag and drop, then select all in ref manager and merge..
Now if you dont want unused levels use the compress tool to delete unused levels
and maybe clean up utility to delete duplicates
Then from level manager export levels to csv... only the used levels will be exported into a single report csv...
if you wanted a report of each file levels used then you would need a differnet approach as leonard has with the vba to list each file into a named csv but still uses batch processor to process out each dgn contents...
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
If you put this line in your batch process you may get what you want:
expand keyin level library export c:\temp\$(basename(_dgnfile))
This will generate a seperate csv file for each drawing with the name of the drawing. Afterwards, if required, you can merge all csv files into one.
Regards, Andre
Its Working....Thanks a lot