• 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. Using SKILL to draw over the PCB design

Stats

  • Replies 3
  • Subscribers 159
  • Views 12848
  • Members are here 0
More Content

Using SKILL to draw over the PCB design

SergeiR
SergeiR over 9 years ago

Hello, I'm new to Allegro and SKILL, and am currently looking into using SKILL scripts to draw graphics over the board design.  I've looked at the example script included with Allegro (axlform.il), where the axlGRPDrw* functions are used to draw on a separate form, but have not been able to modify that code to draw in the main view.  So, I was wondering if what I am trying to do is possible, and if so where could I find some documentation and/or examples on how to do this.

Thanks,

-Sergei

  • Sign in to reply
  • Cancel
Parents
  • B Bruekers
    B Bruekers over 9 years ago

    What you need to then is to keep a list of the newly created items. Each axlDBCreate function returns a list of dbID. Add these ID's to a list and once you stop the function you can delete them with axlDeleteObject.

    So something like:

    ; make a new list

    l_items = list(nil)

    ;add items with nconc. 'appends' a list to a list, but changes the l_items destructively)

    nconc( l_items  car(axlDBCreateLine( (list 1:1 5:5), 1, "etch/top")) )

    nconc( l_items  car(axlDBCreateLine( (list 10:10 20:20), 1, "etch/top")) )

    ...

    ;remove any 'nil' items

    remdq(nil l_items)

    ;now the l_items contains the newly created dbID's. You can delete them

    axlDeleteObject(l_items)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • B Bruekers
    B Bruekers over 9 years ago

    What you need to then is to keep a list of the newly created items. Each axlDBCreate function returns a list of dbID. Add these ID's to a list and once you stop the function you can delete them with axlDeleteObject.

    So something like:

    ; make a new list

    l_items = list(nil)

    ;add items with nconc. 'appends' a list to a list, but changes the l_items destructively)

    nconc( l_items  car(axlDBCreateLine( (list 1:1 5:5), 1, "etch/top")) )

    nconc( l_items  car(axlDBCreateLine( (list 10:10 20:20), 1, "etch/top")) )

    ...

    ;remove any 'nil' items

    remdq(nil l_items)

    ;now the l_items contains the newly created dbID's. You can delete them

    axlDeleteObject(l_items)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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