• 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. Changing script parameters & "Replay" from skil functio...

Stats

  • Replies 6
  • Subscribers 161
  • Views 3977
  • Members are here 0
More Content

Changing script parameters & "Replay" from skil function

Kadar
Kadar over 14 years ago

Hi ALL,

1) How can I replay a recorded script   but with different parameters(different pick coordinates for example)?

2) I've defined Funckey for Skill function that replays script(axlShell("replay  C:\\Scripts\\Shape_Connection"), then I've tried the function using the

funckey from COMMAND LINE and got this:

W- Cannot exit current application
E- Form field label not found
E- Command not found: fillin GND
E- Form field label not found
E- No command active
E- Form field label not found

I entered the Skill MODE, typed Skill function name and it replayed the script(the script  creates solid shape with specified net, on specified layer, using 8 pick points)

The question is how can I replay script from inside Skill function being in COMMAND MODE?

Thank You All

Evgeni

 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 14 years ago
    Scripts are a messy way of achieving programming results but, if you really have to, embedding the call into Skill does work. To call a Skill file from the command line (or a menu) you need to register a command and put it into your allegro.ilinit file. eg axlCmdRegister("shape connection" 'Shape_connection) Shape_connection.autoload = "Shape_connection.il" Dave
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Kadar
    Kadar over 14 years ago

    Hi Dave, thank you for quick response,

    The reason I want to use script is creation of funckeys for some cases that i have problem

    To achieve the desired result by SKILL. For examle, I want toggle between  "Snap pick to" options (Segment Vertex, Segment Midpoint.........)

    While creation the polygon using "T" button. 

    There some commands like "bubset" - used to toggle between slide modes,  that are not mentioned in SKILL reference

    Nor in ALLEGRO commands list.

    Can You please advise me any way to create effective funckeys for toggling Pop-up menu options?

    Regards, 

    Evgeni 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 14 years ago

    Hi

    Creating shortcuts for e.g. the snapping functionality is rather simple. If in doubt about the syntax, then record a script while doing a command and then separate the commands by semicolon. Or you could write scriptmode +e in the command line and observe all commands being written to the command window.

    E.g. the snapping you could use the following funckey definitions (won't work if you have s assigned as a single key shortcut)

    When you press s the first time, the PCB Editor will wait for your next key (and in some cases also the 3rd key)

     # s+c for snap to arc or circle center
    funckey sc "prepopup;pop dyn_option_select 'Snap pick to@:@Arc/Circle Center'"

    # s+f for snap to arc or circle center
    funckey sf "prepopup;pop dyn_option_select 'Snap pick to@:@Figure'"

    # s+i for snap to intersection
    funckey si "prepopup;pop dyn_option_select 'Snap pick to@:@Intersection'"

    # s+l to activate slide command
    funckey sl slide

    # s+p for snap to pin
    funckey sp "prepopup;pop dyn_option_select 'Snap pick to@:@Pin'"

    # s+v for snap to via
    funckey sv "prepopup;pop dyn_option_select 'Snap pick to@:@Via'"

    #s+s+m for snap to segment midpoint
    funckey ssm "prepopup;pop dyn_option_select 'Snap pick to@:@Segment Midpoint'"

    #s+s+o for snap to symbol origin
    funckey sso "prepopup;pop dyn_option_select 'Snap pick to@:@Symbol Origin'"

    #s+s+v for snap to segment vertex
    funckey ssv "prepopup;pop dyn_option_select 'Snap pick to@:@Segment Vertex'"

    I hope you can use that? Basically I've been able to create shortcuts for just about anything, so if you have an example, let us know and who knows what will happen.

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Kadar
    Kadar over 14 years ago

    Hi Ole,

    This is not exact thing I want to do.

    I want to create funckey(one button only) to get rotating(toggling) mode switching.

    Ctrl+S ---> enterinng Skill function, inside Skill function

    I used inside a loop: EVENT_MASK=list('PICK 'DBLPICK) 

     EVEN=axlEnterEvent(EVENT_MASK   OPTION   nil)

    to toggle(only printing to user) between:Pin,Via, Segment Vertex,.......  when EVENT->type=='PICK

    And when EVENT->type=='DBLPICK - breaking loop and executing ... "prepopup;pop dyn_option_select 'Snap pick to@:@Pin'"

    Where "Pin" last printed OPTION to user.

    But it's not so smooth, becase I never get  EVENT->type=='DBLPICK, because the 'PICK  always comes before 'DBLPICK.

    If You understood my question maybe You would generate some idea. 

     Thank YOU,

    Evgeni 

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 14 years ago

    Hi

    I don't know how you can accomplish this, sorry.

    Ole

    • 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