MicroStation Programming Forum - [CE VBA] Configuration variable query?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

[CE VBA] Configuration variable query?

by
MaryB
Expert

I am working on our company configuration and looking at -debug files is making my eyes cross.

I would like to write a VBA project to help me analyze variables, but I'm not sure if I can do what I want. I'd like some suggestions for a direction.

For instance, I might like to redefine _USTN_HOMEPREFS but I have no easy way of finding all the places _USTN_HOMEPREFS is used. I don't want the expansion, I want to know the names of other variables that are defined using _USTN_HOMEPREFS.

Or I'd like to look at MS_DEF and see a listing of the files and variables that process through to the current configuration. Some kind of single variable debug; the final expansion value is great, but I'd rather know how we got there.

Or even a VBA that could sort through the -debug text file so I could isolate all mentions of a single variable. This may be the easiest...Go through the debug, line by line. If the variable is mentioned in that line, copy the whole line to a text file and move to the next line.

I currently have OpenRoads Designer 2020 R3 (V. 10.9.0.91) I am limited to VBA by my distinct lack of programming ability.

Thank you.
MaryB