Plotter Driver Variables Explanation Needed

 Two Questions 

  1. Microstation Plotter Driver Accessible Variables
    I am in a commonly used Plotter Driver at work when I notice the following lines commented out.
    ; To configure a default output file name comment out the default_extension
    ; line above and uncomment this line. "lpt1" may be substituted with any
    ; desired filename - e.g. "$(MS_PLTFILES)plotfile.000"
    Being a programmer I recognize a variable when I see one... $(MS_PLTFILES) is a variable. Where can I get a list of other variables and what they mean?
  2. Auto-Naming Variable Using Naming Convention
    I would like to generate a FileName that is based on the currently open files name. Are there variables that can be edited and manipulated within the Plotter Driver files that would allow this? For instance... Our system is setup so that our disciplines are named 00000XX.dgn (Stormwater Page 123 = 00123sd.dgn, Water Page 123 = 00123wa.dgn, etc). When we go to print a discipline page we open a border page that uses the following naming convention, XXbdr.dgn (Border Page 123 = 123bdr.dgn, Border Page 12 = 12bdr.dgn, etc.). When I open the Border Page and print an LRG file for our 510 Plotter, I have to name the created LRG file like so ( Border Page for Stormwater 123 = 00123sd.lrg, Border Page for Water 12 = 00012wa.lrg, etc ). Is it possible to generate some variables that would create this naming convention for me depending on which Plotter Driver was selected?
Parents
  • Bear:

    Bear, thank you. The debug option alone in that is awesome! Thanks man.

    Phil Chouinard:

    For the second question, it is unclear if you are looking to change the filename as opposed to using the exact filename. For the latter, you might want to take a look at using:

    "$(basename(_DGNFILE)).LRG"


    for your default_outFile... statement in the PLT file you are using.

    I'm trying to turn a file named 123bdr.dgn into 00123sd.lrg (for Stormwater) or 45bdr.dgn into 00045wa.lrg. The Border Pages ("bdr") are unique (don't ask me why) in that they don't have the padding of zeroes that are needed for the lrg file. So page 19 for Border Pages is just "19bdr.dgn" whereas when I print the Stormwater view of that same border page I have to add padding zeroes up to 5 digits to make it "00019sd.lrg" I don't think it can be done like I want it to with just variables, but I have hope! The other option is to remove the extension, the dot, and three characters all from the rightside of the filename + extension and replace with the 2 character discipline + .lrg and then deal without the padding zeroes. It's not a HUGE time saver, but if the guys could just double click the StormwaterLRG.plt file and forget about dealing with which folder it had to go into? I think they would REALLY dig it.

    Phil Chouinard:

    BTW, it might be better to post one inquiry per thread... we have found that makes it easier to follow (and find) specific topics.

    Good point. I'll do that in the future. I just came here with 30 questions running through my head and didn't wanna lose any of them.

    It's all just lines and dots right?
    Rev. Brian Scott O'keefe
    ( www.randomblink.com )

  • WRT the print file name part, there are some things you can do with configuration variables, but that is somewhat limited. There is a section in Help > Contents that might be worth a looksee... search for "Variable definition references" for what is possible to extract and "build" definitions. From what you further describe, you might be looking at a VBA macro to achieve what you are after.

    Not really sure about the "...could just double click the StormwaterLRG.plt file and forget about dealing with which folder it had to go into" part... is that another topic? FWIW, you can put print output in any place you want -- either let MicroStation do that for you (through a configuration variable) or in the same folder as the DGN file you are in or some other place that you desire. That said, if that is what you want to do, you might want to start a new topic on that :)

      

Reply
  • WRT the print file name part, there are some things you can do with configuration variables, but that is somewhat limited. There is a section in Help > Contents that might be worth a looksee... search for "Variable definition references" for what is possible to extract and "build" definitions. From what you further describe, you might be looking at a VBA macro to achieve what you are after.

    Not really sure about the "...could just double click the StormwaterLRG.plt file and forget about dealing with which folder it had to go into" part... is that another topic? FWIW, you can put print output in any place you want -- either let MicroStation do that for you (through a configuration variable) or in the same folder as the DGN file you are in or some other place that you desire. That said, if that is what you want to do, you might want to start a new topic on that :)

      

Children
No Data