I am in the process of writing some Skill code to create a negative silkscreen label. One of the steps that i need to do is to Z-copy the label to the board geometry / silkscreen_top layer. I'm still fairly new to Skill coding and for this exercise I am sending a bunch of axlShell commands that i got from using scriptmode -i.
The axlShell commands all work when i enter them one line at a time at the Skill prompt, however whenever I run my .il file I always get stuck in creating a bounding box around what I need to get Z-copied.
Here is the area of the code where I seem to get stuck:
zcopy = "zcopy shape; setwindow pcb; drag_start "
zcopy2 = "setwindow pcb; drag_stop "
sprintf(cmd "%s %d %d " zcopy (StartX-25) (StartY+25))
The last command always executes and I have the bouding box started.
sprintf(cmd "%s %d %d" zcopy2 EndX EndY)
The above code never executes.
I always wind up with a the Z-copy bounding box started and the end point attatched to my cursor. And the Skill prompt at:
Select cline, shape, rectangle or closed polygon.Enter selection pointSelect cline, shape, rectangle or closed polygon.Enter selection pointSkill >
Can anyone point me to what i am doing wrong? Or suggest a better way of completing the Z-Copy using Skill?
I have found my mistake. After adding a ";" after each of the drag_start and drag_stop the script finishes with the resired results.