• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Z-copy skill code

Stats

  • Replies 2
  • Subscribers 159
  • Views 13514
  • Members are here 0
More Content

Z-copy skill code

Kot13
Kot13 over 11 years ago

Hi All,

 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))

   axlShell(cmd)

The last command always executes and I have the bouding box started.

   sprintf(cmd "%s %d %d" zcopy2 EndX EndY)

   axlShell(cmd)

   axlShell("pop Done")

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 point
Select cline, shape, rectangle or closed polygon.
Enter selection point
Skill >

 

Can anyone point me to what i am doing wrong? Or suggest a better way of completing the Z-Copy using Skill?

Thanks

-K

 

  • Sign in to reply
  • Cancel
  • Kot13
    Kot13 over 11 years ago

    All,

     I have found my mistake. After adding a ";" after each of the drag_start and drag_stop the script finishes with the resired results.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Randy R
    Randy R over 11 years ago

    Thanks for letting us know what the solution was.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information