Thanks for your reply. I'll try explaining a bit better. I'm using a macro to create jpeg pictures of a model (ANSYS 5.6 on NT4). I want to view the jpegs in a (pre-prapared) HTML template, therefore I would like to control the jpeg's filename. So I know exactly what each picture is, I'd like to rename it with the macro as soon as it's produced.
To create and rename the jpegs I use the following in my macro:
/sho,jpeg !switch output to jpeg file replo !replot output (sending it to jpeg file) /sho,term !switch output back to screen /sys,rename Jobname000.jpg MyName.jpg !rename jpeg file
Works fine, but actually two jpeg files are produced - Jobname000.jpg (28kb in size) and the other, Jobname001.jpg, is 'empty' (1kb in size and non-readable as jpeg). The interesting thing is that after deleting both jpeg files, when I run the macro again, it's Jobname000.jpg that's 1kb and Jobname001.jpg that's 28kb; ie they toggle. Run the macro multiple times (deleting both jpegs between each run) and the files' size alternate!
So, the /sys,rename... only gives me the jpeg with the picture 50% of the time!
Hope that's a bit clearer. Any clues?
Mark Fahey
"Ceko, John (Bolton)" wrote:
> Mark,
> Through the GUI, Plot Ctrls >Hard Copy you get a dialog box where you can > put in whatever name you desire for your plotfile, and also control > orientation, format (JPEG, PS, TIFF), etc...
> I don't quite understand your problem....are you running an older version?
> John Ceko > Husky Injection Molding Systems
> -----Original Message----- > From: Mark Fahey [mailto:m.fahey@l...] > Sent: 2000, November 30, Thursday 10:10 AM > To: xansys > Subject: [xansys] Controlling name of jpeg output
> Hi
> I want to control the name of a jpeg output from ANSYS. Maybe someone can > give me a few tips.
> The jpeg comes out as Jobnamennn.jpg and I intend to use a /sys command to > rename it. But I've found that two jpeg files are produced each time the > /show command is issued (eg Jobname000.jpg and Jobname001.jpg). One of the > files is very small (ie not a picture) and the other is the picture. > Trouble it alternates each time as to which one is the big one and which one > is the small one!
> If anyone has a trick to rename only the bigger file of the pair, or even > better get ANSYS to produce only one file, I'd love to hear it.