Skip to main content
1-Visitor
January 14, 2015
Question

IsoDraw macro

  • January 14, 2015
  • 4 replies
  • 1300 views

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.


4 replies

12-Amethyst
January 14, 2015
Try something along this.

Macro Export_jpg

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

End Macro
1-Visitor
January 15, 2015

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.

12-Amethyst
January 16, 2015
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

1-Visitor
January 17, 2015

Hi Trevor


Thanks.