Plotter Driver Inheritance?

I have a plotter driver that we use at work that creates a CGM.

It had the following line set:

default_extension = 'cgm' ; default extension for cgm

When it was ran, the printer driver would open a "SAVE AS" dialog box and you have to navigate to the correct location and name the file correctly. Well, I was just doing some R&D and discovered that you can comment OUT the line above... and put in this line:

default_outFile/auto_overwrite = \\path\you\want\to\auto-set\FileName.cgm

And when you run the plotter driver NOW? I auto creates a file called FileName.cgm at the "path\you\want\to\auto-set"

My question here is this...

I'm a programmer, so forgive me if this seems unreadable. I'm thinking programming concepts here like Abstract Classes and Inheritance. My thought is this. I want to leave the Plotter Driver mentioned above completely alone. I want to create a new Plotter Driver just for (let's say) Stormwater pages. The new plotter driver should inherit ALL of the functionality of the one mentioned above (without my changes) BUT it should auto-set the FileName and Path for the CGM it creates?

In our department we put Stormwater CGM's in one folder, Wastewater in another, etc. Ad Nauseum. I'm trying to come up with an idea to build on this concept. By creating a Stormwater Plotter Driver that inherits, if management ever makes a change to any of the core concepts within the Main Plotter Driver, then all of the ones inheriting from it would auto-adjust to the new settings instantly. AND it would allow us to have quick and easy Plotter Drivers for common prints we create.

Anyone got an idea?

Parents
  • So, as you work in old style .plt files you can use the

    %include baseclassdriver.plt    statement in your child.plt

    Frank

    FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

    Regards

    Frank

    since 1985: GIS, CAD, Engineering (Civil)  Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads,  HHK Geograf, IBr DAVID] :  Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML]
    [direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"
    Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)

  • Frank_Klein:
    %include baseclassdriver.plt    statement in your child.plt

    Frank,

    I was not aware of the fact tha include statements could be used in plt files. Do you know of a way to accomplish this functionality in pltcfg files?

    TIA - Roy
Reply Children