• 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 20954
  • 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

    I can't think why you would want to do it this way but, for what it's worth:

    The function could be: 

    defun( my_OpenAllegroTrigger () axlCNSSetSpacing(nil "ETCH/BOTTOM" 'thrupin_smdpin 0.050)); Are your units really inches?

    You are correct, this can be called via an axlTriggerSet command: Add a command such as

    axlTriggerSet('open 'my_OpenAllegroTrigger)

    Where the function is loaded via a load command in your ilinit file.

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

    Hi Dave,

     It looks like it worked exactly the way I wanted to. 

    I believe we want to do this as request from assembly for TH pin to SMD pin on the bottom side during the assembly process.

    I think we are trying to make it so we can set this constraints when people open the file so people will not forget, but I just realized if there is a case if someone need to make this smaller (which I expect will happen pretty often) that it will load it back up to the 50 mils everytime we open the board which seems like it would be a nuisance. 

    I guess I need to rethink this through.  

    Thank you for your help.  Hopefully I can use this as a base to the new and better solution. 

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

    Hi Dave,

    Just for reference, is there a way to make it work for both mils and Inch boards?

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

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

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

    I thought it was working, but now I am getting error below.

     E- *Error* eval: not a function - 'open 

    I have this in env file:

    (load "TH_SMT.il")

    axlTriggerSet ('open 'TH_SMT)

     The .il file has the information  you gave me.  Do you know what could be the issue now? 

    • 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