• 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. How can check the distance between two differnce class/...

Stats

  • Replies 4
  • Subscribers 158
  • Views 2992
  • Members are here 0
More Content

How can check the distance between two differnce class/subclass

archive
archive over 18 years ago

Hi
I am trying to find good way how to check the distance between two different class/subclass.
Expecially soldermask and goldmask distance of film artwork is major concern because the minimun distance is required by 0.3mm so manual check is very tedious for small pcb design.

Please address how to make skill program for this distance check.

Thanks in advance

BK Park


Originally posted in cdnusers.org by bkpark
  • Sign in to reply
  • Cancel
  • archive
    archive over 18 years ago

    Hi BK,

    You may be able to use the axlAirGap command.
    axlAirGap(obj1 obj2)
    This will work for shapes on different classes.

    Cheers, Dave


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

    Thanks

    I


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

    Thanks Dave

    I tried to run like this as axlAirGap(Solder_mask Gold_mask ), but return fail.
    I am not Skill expert, so please write some code more detailly.




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

    Hmmm, you really are jumping in at the deep end!
    First you need to get the dbid of each of the objects that you want to measure between.
    Typically you might want to find the minimum distance between all shapes on a single subclass.

    shapes = axlDBGetShapes("manufacturing/solder_mask")
    minGap = nil
    while(cdr(shapes)
    shp1 = car(shapes), shps = cdr(shapes)
    foreach(shp2, shps
    gap = caddr(axlAirGap(shp1, shp2))
    minGap = if(minGap then min(minGap, gap) else gap)
    )
    )
    minGap; Rturn the minimum gap between shapes on this subclass.

    This code will be slightly more complex if you are measuring between two subclasses - but you should be able to figure it out.

    Cheers, Dave


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