Macro problem related to filenames - Isodraw
Does the document object get reset by "save"?
I have come across a strange clash between 2 of my macros.
One macro I have does the following:
define myDoc as document
define fullpath as string
fullpath = myDoc.path
fullpath returns the full pathname of the current document as I expect.
However, another macro I have seems to change the above so that fullpath only returns the file name without the full path.
I added 4 lines into another macro to save the current illustration with a new name and this is when the problem occurred
define file_name as element
file_name = stripExt(activeDoc.name)
file_name = (file_name + "-211.iso")
save file_name
This means that if I run the 1st macro on its own, no problem, but if I run the 2nd macro and then run the first again, it doesn't return the fullpath properly.
I presume there is a way round this if I knew more about the way the language works. Is it the "save" command that resets something?

