• 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. after register command, cannot move the component

Stats

  • Replies 1
  • Subscribers 159
  • Views 13315
  • Members are here 0
More Content

after register command, cannot move the component

cm123
cm123 over 14 years ago

Hi ,

I have the following code and put to directory  C:\Cadence\SPB_16.3\share\local\pcb\skill. firstly, I click move menu and select a component and type in  command line "move_xy".  

Command > move_xy
last pick:  3197.2  7315.5

Command>

But the selected component did not move and go back to original place.

before register command, I put my code in C:/drive and manually load in skill .

skill>load("c:/move.il")

and click move menu and select component and type function name.

skill>move_location

In there, component can be moved to desired location.

Let me know your comments. In command prompt, why the command did not move the component (it means not affect to selected component). I can only see last pick ...... in command prompt.

Thanks

--------------------------------------------------------------------

axlCmdRegister( "move_xy" 'move_location)
procedure( move_location()
let((xy a b cmd_str)
a= 3197.2

 b=7315.5
cmd_str=sprintf(nil "x %.1f %.1f",a b)
axlShell(cmd_str)
axlShell("done")

))

  • Cancel
  • Sign in to reply
  • cm123
    cm123 over 14 years ago

    I want to share my solution.

    I changed like that.

    axlCmdRegister( "move_xy" 'move_location)
    procedure( move_location()
    let((xy a b cmd_str)
    a= 3197.2

     b=7315.5
    cmd_str=sprintf(nil "alias tt x %.1f %.1f",a b)
    axlShell(cmd_str)
    axlShell("done")

    ))

    after that, in the command prompt, run "move_xy" .

    and in the menu bar, select move menu and select the element I want to move.

    and then in the command prompt, type tt

    it is working.

     

    • 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