• 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 Scripting - Skill
  3. How to measure distance using AxlAirGap between or a cline...

Stats

  • Replies 2
  • Subscribers 18
  • Views 8862
  • Members are here 0
More Content

How to measure distance using AxlAirGap between or a cline (or a net) and a symbol?

solene D
solene D over 4 years ago
Hello, 
I am a beginner in skill and I need help please
I need to measure a distance using AxlAirGap between a net or a cline and a symbol.
No matter what I try, axlAirGap always returns "nil" to me.

My last attempt was of this type
foreach(sy_child symbol->children
foreach(cline list_cline

foreach(segm cline->segments
distance = axlAirGap(
sy_child segm nil 'aniLayer)
   )
)
)

Could someone help me please?

  • Cancel
  • Sign in to reply
  • DavidJHutchins
    DavidJHutchins over 4 years ago

    please try changing:

       distance = axlAirGap(sy_child segm nil 'aniLayer)
    to
    distance = axlAirGap(sy_child segm nil 'anyLayer)

        

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • solene D
    solene D over 4 years ago in reply to DavidJHutchins

    Thank you, I hadn't seen this silly typo...

    • 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