Hi,
i am trying to plot from a script but for me the PlotWriter() seems to behave not like described in the documentation.
I want to put the plots in a specific folder.
My script:
var Design = ActiveDocument();
if (Design) {
var PlotWriter = Design.NewPlotWriter();
if (PlotWriter) {
PlotWriter.WriteDevicePlots('PDF', 'Test/');
}
}
I get the following warning:
"File Test/Design1_.pdf is locked"
The Folder "Test" does not appear on my computer.
Changing the script to
var Design = ActiveDocument();
if (Design) {
var PlotWriter = Design.NewPlotWriter();
if (PlotWriter) {
PlotWriter.WriteDevicePlots('PDF', '/Test/');
}
}
Produces a folder one level above.
expected:
D:/Pulsonix/Test/Design1_.pdf
reality:
D:/Test/Design1_.pdf
Changing the script to:
var Design = ActiveDocument();
if (Design) {
var PlotWriter = Design.NewPlotWriter();
if (PlotWriter) {
PlotWriter.WriteDevicePlots('PDF', '../Test/');
}
}
Produces the folder
D:/Pulsonix/Test
but there is only the Design1(CAMPlot).txt report.
For me the folder relative path is wrong, it doesnt behave like in the documentation.
Am i missing something?