• 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 spacing constraints when opening Allegro

Stats

  • Replies 23
  • Subscribers 158
  • Views 20970
  • Members are here 0
More Content

Changing spacing constraints when opening Allegro

Mstrghettorigg
Mstrghettorigg over 12 years ago

Hi All,

 I was wondering if anyone can guide me in the right direction.

I'm trying to make it so I can set the bottom SMD pin to TH distance when allegro starts up.  This will need to be done to all files being opened.

I'm not familiar with writing skills, but I was wondering if anyone has ran into similar Skill file or at least guide me in the right direction.

I looked through some forum and it looks like I can use axlCmdRegister and axlTriggerSet commands to run the skill automatically once I have the skill file create.

I think this command is where I need to get started from, but I don't think it's that simple. 

axlCNSSetSpacing("" TOP 'Thru Pin_SMD Pin .050 INCH) 

Any help will be appreciated.

Thanks! 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 12 years ago

    Remove the space before the (

    ie.  axlTriggerSet('open 'TH_SMT)

    (load "TH_SMT.il") should be in you ilinit file.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Mstrghettorigg
    Mstrghettorigg over 12 years ago

    Hi Dave,

    Sorry for not getting back earlier.  I've been little busy with work.

    So I tried it as you have suggested.  (load "TH_SMT.il") in ilinit file

    Tried the axlTriggerSet('open 'TH_SMT) in env, ilinit, skill file one at a time and I still cannot get it to run.

    The TH_SMT.il is loaded since if I type TH_SMT in the command line the skill will run, but it does not automatically run and change the constraints.

    Please advise if you can think of anything else that I may be doing wrong. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 12 years ago
     axlTriggerSet should call the Skill function name - not the name of the Skill file (unless they are the same of course)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Mstrghettorigg
    Mstrghettorigg over 12 years ago

    Hi Dave,

    I can't seem to figure this out.  I must be missing some steps here.  My skill file name is TH_SMT.il and inside contains 

    (defun TH_SMT () axlCNSSetSpacing(nil "ETCH/BOTTOM" 'thrupin_smdpin axlMKSConvert(50 "mils") ))

    This file seems to work just fine if I type in TH_SMT in the command line with allegro.ilinit calling out

    (load "TH_SMT.il")

    I just can't seem to get it to run this automatically when I open the board.

    I entered axlTriggerSet('open 'TH_SMT) in the allegro.ilinit file, but it does not work.

    I also tried in in env file but it did not work either.

    Any help would be appreciated.

     Thank You! 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 12 years ago
    All that looks good. Are you sure that your allegro.ilinit file is being called? There is a heirarchy for the calls so maybe it's finding another copy? Put some messaging into your TH_SMT function for testing.
    • 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