The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi all, I have two macros one creates a jpg the other a cgm. what do I need to do to make them work as one.
Macro export jpeg
# recorded with Arbortext IsoDraw 7.3
Save
Define final as string
final="X:\Photos\" + stripext(activedoc.name) + ".jpg"
Export final "JPEG"
End Macro
Macro export CGM to sp_windrower image folder
# recorded with Arbortext IsoDraw 7.3
app.interaction=false
Save
Define final as string
final="X:\Dita Documents\English\Products\sp_windrower\Images\" + stripext(activedoc.name) + ".cgm"
Export final "cgm"
app.interaction=true
End Macro
thanks
Bryon
Solved! Go to Solution.
Thanks Trevor, I will go back and modify all the names to remove spaces. This is what I figured out to work
Macro export CGM to sp_windrower image folder # recorded with Arbortext IsoDraw 7.3 app.interaction=false Save Define final2 as string final2="X:\Photos\" + stripext(activedoc.name) + ".jpg" Export final2 "JPEG" app.interaction=true app.interaction=false Save Define final as string final="X:\Dita Documents\English\Products\sp_windrower\Images\" + stripext(activedoc.name) + ".cgm" Export final "cgm" app.interaction=true End Macro |
Thanks
Bryon
First, I don't believe you can have spaces in your macro name. Either way, it's not good practice. I personally use an underscore (_) as a space replacement. Based on that...
Say you have your two macros, Macro CGM_Export and Macro JPG_Export. If you want to simply combine them you can call them from a third by doing the following.
Macro Export_All
Run CGM_Export
Run JPG_Export
End Macro
If you want to hide the submacros you can either change them to submacros or add 'Not_In_Menu' after the macro name in the macro itself.
Thanks Trevor, I will go back and modify all the names to remove spaces. This is what I figured out to work
Macro export CGM to sp_windrower image folder # recorded with Arbortext IsoDraw 7.3 app.interaction=false Save Define final2 as string final2="X:\Photos\" + stripext(activedoc.name) + ".jpg" Export final2 "JPEG" app.interaction=true app.interaction=false Save Define final as string final="X:\Dita Documents\English\Products\sp_windrower\Images\" + stripext(activedoc.name) + ".cgm" Export final "cgm" app.interaction=true End Macro |
Thanks
Bryon
Hi Bryon,
Did the modification work out for you?
Let us know if there's any follow-up for the community.
Thanks!