cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

IsoDraw macro

Newbie

IsoDraw macro

Hi adepters,


How to change file name or file name extension in macro.


I would like to export the ilustration to cgm, svg and jpeg by macro. Macro mustchange the file extension and than export the file, step by step from *.iso to *.cgm andthen to *.jpeg. I don't know how to change the file extesion in macro ?


Thanks.


Tags (2)
4 REPLIES 4

IsoDraw macro

Try something along this.

Macro Export_jpg

Export stripExt(activeDoc.name)+ ".jpg" "JPEG"
Export stripExt(activeDoc.name)+ ".cgm" "CGM"

End Macro

RE: IsoDraw macro

Hi Trevor,


Good job. Thanks.


Trevor,


please how can I set the path for exported files to the same directory as the source file is. Thanks. Jan.

IsoDraw macro

Sorry. Actually was thinking I did that but obviously missed it. Try the following.


Macro Export_jpg



Export StripExt(ActiveDoc.Path) + ".jpg" "JPEG"

Export StripExt(ActiveDoc.Path) + ".cgm" "CGM"



End Macro

RE: IsoDraw macro

Hi Trevor


Thanks.