• 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. Skill code to move component

Stats

  • Replies 34
  • Subscribers 162
  • Views 27682
  • Members are here 0
More Content

Skill code to move component

archive
archive over 19 years ago

Hi,
I'm trying to generate a skill program that launches place manual -hide and then picks a specific coordinate to pick up the component placed in that coordinate.

I know that I have a pin placed in 0,0 and would like the skill program to pick that coordinate and leave the component on the mouse for me to place manually.

I've tried doing the following
axlShell("place manual -h")
axlShell("pick 0 0")

and I've also tried running a script that I've recorded that does the exact same, but both methods fail. They do launch the place manual command but I cannot get skill to pick that coordinate so that it is left for me to move the component

Does anyone have some good ideas, thanks.

Best regards,
Ole


Originally posted in cdnusers.org by ejlersen
  • Sign in to reply
  • Cancel
Parents
  • archive
    archive over 19 years ago
    Hi Dave, Mike et al,

    Let me see if I can explain this better.
    Normally you would use place manual and select a specific reference designator that should be moved or placed(if unplaced)

    Instead I would like to write mc c1 in the command line and it should launch manual place in hide mode and attach C1 to the cursor for me to place whereever I want.

    As soon as the component is placed the manual place dialog should close down again and the Allegro PCB Editor should be left in idle mode.

    I've attached a skill program find_cmp.il which basically does what I would like to do with respect to move/place manual. I've also attached my own revision called move_cmp.il which works almost as expected. writing mc c1 in the command line brings c1 to the cursor for movement - I can however not use my shortcuts (r iangle 90 or o pop mirror) and when I place the component the place manual dialog is still open.

    I've looked through tons of skill code and also all the examples in share\pcb\examples\skill without finding anything that I could use or some good examples. All code that I can find places objects at specific coordinates which is not what I'm looking for - I've tried looking at the dynamicobjects functions but they're very sparse documented and there's no examples that I can use to understand this better - some of them are written in pseudocode which cannot just be launched for test.

    I hope someone knows more about this and can help me, thanks in advance.


    Best regards,
    Ole


    Originally posted in cdnusers.org by ejlersen
    find_cmp.il
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • archive
    archive over 19 years ago
    Hi Dave, Mike et al,

    Let me see if I can explain this better.
    Normally you would use place manual and select a specific reference designator that should be moved or placed(if unplaced)

    Instead I would like to write mc c1 in the command line and it should launch manual place in hide mode and attach C1 to the cursor for me to place whereever I want.

    As soon as the component is placed the manual place dialog should close down again and the Allegro PCB Editor should be left in idle mode.

    I've attached a skill program find_cmp.il which basically does what I would like to do with respect to move/place manual. I've also attached my own revision called move_cmp.il which works almost as expected. writing mc c1 in the command line brings c1 to the cursor for movement - I can however not use my shortcuts (r iangle 90 or o pop mirror) and when I place the component the place manual dialog is still open.

    I've looked through tons of skill code and also all the examples in share\pcb\examples\skill without finding anything that I could use or some good examples. All code that I can find places objects at specific coordinates which is not what I'm looking for - I've tried looking at the dynamicobjects functions but they're very sparse documented and there's no examples that I can use to understand this better - some of them are written in pseudocode which cannot just be launched for test.

    I hope someone knows more about this and can help me, thanks in advance.


    Best regards,
    Ole


    Originally posted in cdnusers.org by ejlersen
    find_cmp.il
    • 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