• 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 27518
  • 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
  • archive
    archive over 19 years ago

    Hi,

    I found out some more

    I can use the following code
    Command=strcat("place manual refdes" refdes_name)
    axlShell(Command)

    The only demand here is that the refdes_name is an unplaced symbol, I'm however missing 2 things if I do this.
    1. After typing the command at the command line I would like to skill program to make the PCB editor window the main window - otherwise my shortcuts for rotate, mirror etc. does not work.
    2. After the part is placed the place manual dialog is still shown and I would like it to close automatically after the user places the component

    Does anyone know how to accomplish these 2 things?


    Originally posted in cdnusers.org by ejlersen
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 19 years ago

    Hi Ole,

    Without knowing exactly what you are trying to do it is difficult to offer help.
    However, I don't think many of us would try to do this type of function using Shell commands. I suggest that you look up the axlDynamicsObject and axlEnterEvent functions and base some code around those.

    I can give you some sample code if I know what you are trying to do, and why.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 19 years ago

    I think I understand what you are trying to do.
    Here is a couple ways of handling this:

    From the Allegro Command line via a script:
       place manual -h ; pick 0 0

    From inside of Allegro SKILL
       axlShell("place manual -h ; pick 0 0")

    I am sure there is different ways of performing this inside of
    Allegro SKILL but the basic command above do what you are
    looking for.

    Hope this helps,
    Mike Catrambone
    UTStarcom, Inc.


    Originally posted in cdnusers.org by mcatramb91
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 19 years ago

    If the main idea is to place a component, you can use axlDBCreateSymbol.

    The benefit of this is, you know if the component was placed correctly as this procedure will return the dbid or nil.

    From Cadence documentation:
    axlDBCreateSymbol(
                 t_refdes
                 l_anchorPoint
                 [g_mirror]
                 [f_rotation]
             )

    example:
    ;; place component C1 at point (x,y) on the top of the substrate
    ;; with 90 degree rotation
       axlDBCreateSymbol("C1", list(x, y), nil, 90.0)


    Originally posted in cdnusers.org by natebizu
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 19 years ago

    The following will do it

    (procedure ptest()
            cmd = "place manual -hide; pick 0 0"
            axlShell(cmd)
    )

    Restrictions:  
       1) Do not register this as an Allegro command via axlCmdRegister
           or you will find Allegro will immediately terminate the place manual command.
          Instead call it via Skill ex: skill "ptest"
       2) Make certain your pick from Skill is on a visiable portion of the symbol (not its
           center uness you have something like place bound on). Pins are typically visible.


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