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

Macros

ptc-1218810
1-Newbie

Macros

hi guys, i'm new to this forum but have been using isodraw for 2 years now. Our latest project is all isodraw based and we have quite a need for automating some export processes, but these involve switching the exportable layers. I have tried to write a macro script but i am a bit lost... it comes back with unkown command. Here is what i wrote for the macro script: Macro Tiff Export Layers define QA box as layer QA box.exportable = true Callouts.exportable = true Standard layer.exportable = true Raster Data.exportable = true Illustration area.exportable = true Full page output.exportable = true Symbols.exportable = false Background.exportable = false End Macro Does this make sense?? Tim
2 REPLIES 2

"TIM BARNES" wrote:

hi guys, i'm new to this forum but have been using isodraw for 2 years now. Our latest project is all isodraw based and we have quite a need for automating some export processes, but these involve switching the exportable layers. I have tried to write a macro script but i am a bit lost... it comes back with unkown command. Here is what i wrote for the macro script: Macro Tiff Export Layers define QA box as layer QA box.exportable = true Callouts.exportable = true Standard layer.exportable = true Raster Data.exportable = true Illustration area.exportable = true Full page output.exportable = true Symbols.exportable = false Background.exportable = false End Macro Does this make sense?? Tim

Thanks Dieter, Sorted it out with the following:- If (exists (activeDoc.layers["Draft/QA box"])) then activeDoc.layers["Draft/QA box"].exportable = 1 End If If (exists (activeDoc.layers["Draft/QA box"])) then activeDoc.layers["Draft/QA box"].printable = 1 End If If (exists (activeDoc.layers["Callouts"])) then activeDoc.layers["Callouts"].exportable = 1 End If If (exists (activeDoc.layers["Callouts"])) then activeDoc.layers["Callouts"].printable = 1 End If If (exists (activeDoc.layers["Standard layer"])) then activeDoc.layers["Standard layer"].exportable = 1 End If If (exists (activeDoc.layers["Standard layer"])) then activeDoc.layers["Standard layer"].printable = 1 End If If (exists (activeDoc.layers["Raster Data"])) then activeDoc.layers["Raster Data"].exportable = 1 End If If (exists (activeDoc.layers["Raster Data"])) then activeDoc.layers["Raster Data"].printable = 1 End If If (exists (activeDoc.layers["Illustration area"])) then activeDoc.layers["Illustration area"].exportable = 1 End If If (exists (activeDoc.layers["Illustration area"])) then activeDoc.layers["Illustration area"].printable = 1 End If If (exists (activeDoc.layers["Full page output"])) then activeDoc.layers["Full page output"].exportable = 1 End If If (exists (activeDoc.layers["Full page output"])) then activeDoc.layers["Full page output"].printable = 1 End If If (exists (activeDoc.layers["Symbols"])) then activeDoc.layers["Symbols"].exportable = 0 End If If (exists (activeDoc.layers["Symbols"])) then activeDoc.layers["Symbols"].printable = 0 End If If (exists (activeDoc.layers["Background"])) then activeDoc.layers["Background"].exportable = 0 End If If (exists (activeDoc.layers["Background"])) then activeDoc.layers["Background"].printable = 0 End If
Announcements