<if:>

Use this forum to ask questions about how to do things in CAM Expert.

Moderator: andrew

<if:>

Postby carlhelquist » Wed Sep 16, 2009 10:06 pm

I am trying to have a tool change at the start of each layer only if a layer parameter is set to yes.

Here are the lines I added:

in [LayerParameter]
LayerParameter fixed $T Tool_Change? Yes No
LayerParameter free $t 1 2 3 4 5 6 7 8

in [Code]
OrderToolChange
{<NewLine>t$t m6
<NewLine>g43 h$t}

OrderLayerStart
{<if:$l=Yes><UpdateLayer><NewLine><NewLine>(Layer: $_)
<if:$T=Yes><OrderToolChange></if>
</if>

My problem seems to be that once the <if:> statement runs, the variable is stuck on the value it had when first checked. All subsequent layers are stuck with that value. Other layer parameters that I have added seem to change by layer as long as I don't use them in an <if:>.

Any ideas on what I am missing?

Thanks,

Carl Helquist

using camexpert-2.0.4.8-1-prof.linux90.x86 on Ubuntu 8.04
carlhelquist
Junior Member
 
Posts: 15
Joined: Wed Dec 03, 2008 7:12 pm

Return to CAM Expert 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 2 guests