Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

Batch Process & BIM Level/Serial# Generator

$
0
0

Hey, this might be fairly fundamental or rudimentary for you, and if this is not the place to post this, please let me know where.  I am looking to generate a dgn with level names and level color properties as outlined in an excel file I created with an excel macro.  Then, what I am trying to do is find all elements in a list of dgns/prps and automating the classification and assignment of the levels to elements based on the serial number logic I came up with in the excel file that I have. (see below for the breakdown)

I have over 300 dgns and about 100 prp files.  The files are filled with elements of varying types on multiple number-based levels and different colors.  The issue is that I have a ton of files and the elements are not on levels that define their color "by level" and I can not just change the colors of the elements to "by level" due to how the files are set up and how I need to manipulate the elements in the future.  In essence different elements on the same level and different hard-coded color properties for elements.  I generated new BIM levels in Excel to split the identification of levels in a serial # based approach (basically going from 9 elements on 1 level and 3 hard-coded colors, to 9 elements on 3 levels with one "by level" color assigned to each level).

Been looking at Batch Processing, Microstation VBA, and Excel file incorporation and doing research on this concept ... sort of stuck at the moment, but I think it is possible to pull this off.  If there is any help or pointers let me know, here is an outline:

What I have:

300 DGNs

100 PRPs

1-70 Current Levels (Number-Based)

1-255 Colors (Index Number-Based)

###-####-##-### ("Model File Tracking" 001to400 - "New Level Generation" 0001to9999 - "Current (Legacy) Level Number" 01to70 - "Current Hard-Coded Color & Level Color Assignment" 001-255)

Looking to edit the design files (I have an archive version just in case) and add levels an move all elements to the new levels based on the classification per the serial number logic.

Is it possible to build something like this and scale it for the application over 400 files with the Batch process?  Any pointers?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>