SKILL Q: How to name the plot file automatically?

Discussion in 'Cadence' started by svenn.are, Dec 12, 2003.

  1. svenn.are

    svenn.are Guest

    Hi,

    so far I have been using the filename schematic.ps for plots from
    composer and plot.ps for hardcopies from awd. As the next plot
    overwrites the file I have to move the file away before doing the next
    plot. This is beginning to annoy me a bit and I was thinking about
    finding a solution.

    I am thinking of the following pattern:
    The main name of the file is the name of the library cell (optionally
    with cellview) and the epoch time that the plot was performed. This
    way I can perform subsequent plots without being much afraid of
    overwriting. (I have to clean up my working dir every now and then,
    but that is a minor problem)
    File name would be something like:
    libraryName_cellName_cellView_20031212143425.ps
    where I have decoded the epoch time into an ISO format so that
    alphabetic sorting will take care of the newest plot based on the name
    (that is just a matter of setting the *printf format.

    Can I write a plot template with an evaluated file name, or do I need
    to write a replacement for the plot function. I would very much like
    to attach it to a separate button in the GUI.
     
    svenn.are, Dec 12, 2003
    #1
  2. svenn.are

    rajesh rai Guest

    Svenn,

    Set a bindkey of this sort. And press the bindkey in the schematic only
    after you have invoked Design->plot form atleast once. plotToFile must be
    enabled in your template file and filename may be set to any file. Once
    you press the bindkey it will set accordingly.

    hiSetBindKey("Schematics" "<Key>v"
    "schPlotOptionsForm->plotToFileStr->value =
    strcat(geGetWindowCellView()~>lib~>name \"_\" getCurrentTime())" )

    Thanks
    Rajesh
     
    rajesh rai, Dec 12, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.