Macro *.csv import question

Have a suggestion for improving DPlot or a question about existing features? Let us know
Post Reply
kdenney
Posts: 6
Joined: Thu Nov 20, 2014 10:44 pm

Macro *.csv import question

Post by kdenney »

Hello,

I looked briefly for a topic related to this but couldn't find anything.

I have written a macro to import a large quantity (1000s) of csv files in a single folder and generate plots and images, set scales, colors, etc. The *.grf and *.png files that are generated inherit the filename of the *.csv that is imported - this is great. Now to the question... Is there any way to link the Title of the chart to the csv filename as well? I've found when I generate a plot using the excel add-in, the title is inherited from either the filename and/or sheet name, but I can't seem to find any way to automatically set the title using the Title1("string") macro command.

Any help with this is greatly appreciated

Thanks in advance!
kd
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

I think the command in a macro is:

Title1("$FILETITLE")

Which should assign the filename to the first line of the title block area.
kdenney
Posts: 6
Joined: Thu Nov 20, 2014 10:44 pm

Post by kdenney »

jsc,

Thanks for the reply. Worked like a charm... Out of curiosity, it seems to be grabbing the "*.grf" in the title as well, do you know if this is editable?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

There is not, sorry.
Visualize Your Data
support@dplot.com
kdenney
Posts: 6
Joined: Thu Nov 20, 2014 10:44 pm

Post by kdenney »

Not a problem... Thanks!
Post Reply