SKILL Q: How to name the plot file automatically?

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
 
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

svenn.are@bjerkem.de wrote:

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
 

Welcome to EDABoard.com

Sponsor

Back
Top