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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

IsoDraw macro

ptc-2565388
1-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.


4 REPLIES 4

Try something along this.

Macro Export_jpg

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

End 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.

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

Hi Trevor


Thanks.

Top Tags