• 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. Selecting components in 16.0+ with SKILL

Stats

  • Replies 6
  • Subscribers 159
  • Views 14466
  • Members are here 0
More Content

Selecting components in 16.0+ with SKILL

EvanShultz
EvanShultz over 16 years ago

 Hi all,

Part 1:

 I needed to allow the user to select a component from the PCB and I elected to use:

 comp = car(axlGetSelSet(axlSingleSelectPoint()))

 

I see from this post www.cadence.com/.../7432.aspx that Dave used

axlSelect( ?groupMode nil ?prompt "Please Select Component" )
component_dbid = axlGetSelSet() 

 

Both would seem to get the job done, so what are the tradeoffs for these different methods? Is there an even more prefered method for user selection of components? Or are the above six to one, half a dozen to the other?

 

Now to part 2:

 Although both of these methods work, it almost 'feels' like you're doing something wrong since you don't get the pre-selection highlight, which is default in 16.0+ and seems natural when the cursor is over an element. Is there some way to make the elements (in this case components) highlight temporarily as I hover over the element while running a SKILL program? Everything I can find will highlight after the component is selected, and searching for "preselect" and "pre-select" in the forums didn't turn up any answers.

  • Sign in to reply
  • Cancel
  • Randy R
    Randy R over 16 years ago

    One thing to check is what you are setting your Find Filter to.  You probably need to have Symbol and/or Component selected.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EvanShultz
    EvanShultz over 16 years ago

     Hi Randy,

     Yes, thank you. I am only showing the line which gets the component. I have the following directly before the line(s) in my first post:

    axlSetFindFilter(?enabled (list "noall" "components") ?onButtons (list "noall" "components"))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Grungy Remnant
    Grungy Remnant over 15 years ago

     I'd like to bump this inregards to Part 2.

    EvanShultz said:
    Now to part 2:

     Although both of these methods work, it almost 'feels' like you're doing something wrong since you don't get the pre-selection highlight, which is default in 16.0+ and seems natural when the cursor is over an element. Is there some way to make the elements (in this case components) highlight temporarily as I hover over the element while running a SKILL program? Everything I can find will highlight after the component is selected, and searching for "preselect" and "pre-select" in the forums didn't turn up any answers.

     

    I too would like to know if anyone has found a solution for this missing pre-selection highlight.  Anyone?  :)

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 15 years ago

    Yes, it is possible.

    Thanks to some great work by yskics last month there is now a great way to get the current cursor location. Check out the post "How to get dynamic cursor's location?". Using this code you will be able to hover over a component and highlight it.

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Grungy Remnant
    Grungy Remnant over 15 years ago

     Thanks a bunch for the pointer Dave.  I'll be looking into this for sure :)

     

    Chris

    • 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