Home > Community > Forums > PCB SKILL > Pitch distance measure by Skill

## Email

Recipients email * (separate multiple addresses with commas)

Message *

 Send yourself a copy

## Subscribe

Intro copy of the newsletter section here, some intro copy of the newsletter. Instruction of how to subscribe to this newsletter.

First Name *

Last Name *

Email *

Company / Institution *

 Send Yourself A Copy

# Pitch distance measure by Skill

Last post Thu, Sep 4 2008 1:45 AM by Babu Bin Karim. 5 replies.
 Started by archive 09 May 2007 12:32 AM. Topic has 5 replies and 3870 views
• #### Wed, May 9 2007 12:32 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
Pitch distance measure by Skill
 Hello All, I can provide to my Skill program some placed BGA RefDes ("U40" for example). How Skill program could measure this BGA balls pitch distance ? Any response appreciated Thanks, ShimonOriginally posted in cdnusers.org by shimon37
• Post Points: 0
• #### Wed, May 9 2007 1:19 PM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: Pitch distance measure by Skill
 Hi Shimon,Try:symbol = car(axlSelectByName("REFDES" "U40")); Select the BGAaxlClearSelSet()pins = symbol ->pins; Identify the BGA pinsminPitch = nil; Declare the minimum pitch variableforeach(pin1, pins foreach(pin2, remove(pin1, pins) pitch = axlDistance(pin1 ->xy, pin2 ->xy); Measure the pin to pin pitch of every pin with every other pin minPitch = if(minPitch, min(minPitch, pitch), pitch); Compare pitch with minimum found so far. ))minPitchCheers, DaveOriginally posted in cdnusers.org by Dave Elder
• Post Points: 20
• #### Wed, May 9 2007 8:32 PM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: Pitch distance measure by Skill
 Hi Dave, Thank you very much for your response. It works perfectly. Thanks again, ShimonOriginally posted in cdnusers.org by shimon37
• Post Points: 0
• #### Wed, Sep 3 2008 2:26 AM

• Babu Bin Karim
• Joined on Fri, Jul 18 2008
• Trivandrum, Kerala
• Posts 33
• Points 390
Re: RE: Pitch distance measure by Skill
 Hi Dave,I am a beginner in SKILL routines. I know how to include a SKILL function in allegro.ilinit and execute it from allegro. But I don't know how to use the SKILL code directly in allegro(like the one you had in this post for reporting the BGA pitch) because it is not in the form of a skill function. I had tried to switch to the skill command window and paste this code in allegro. But it is not working. I know I am missing some thing. Please correct me if I am not going the right direction.Please bear with me for deviating from the original subject...Thanks in advance,Babu
• Post Points: 20
• #### Wed, Sep 3 2008 1:37 PM

• eDave
• Joined on Sun, Jul 13 2008
• Christchurch, 00-NZ
• Posts 736
• Points 15,930
Re: RE: Pitch distance measure by Skill
 Hi Babu,Pasting all those lines into the Skill window won't work. The interactive command interpreter will only accept one Skill command at a time - and it must be all on one line.In the example you would have to paste each of these lines one by one:symbol = car(axlSelectByName("REFDES" "U40"))minPitch = nilforeach(pin1, pins foreach(pin2, remove(pin1, pins) pitch = axlDistance(pin1 ->xy, pin2 ->xy) minPitch = if(minPitch, min(minPitch, pitch), pitch)))minpitchNote how the foreach loop must be self-contained on one line.I will discuss this issue with Cadence at the next week's CDNlive conference. Other Lisp implementations that I have used do not have this limitation.Cheers, Dave Dave Elder, Tait Communications
• Post Points: 20
• #### Thu, Sep 4 2008 1:45 AM

• Babu Bin Karim
• Joined on Fri, Jul 18 2008
• Trivandrum, Kerala
• Posts 33
• Points 390
Re: RE: Pitch distance measure by Skill
 Hi Dave,I got it worked. Thank you for your valuable inputs. Babu
• Post Points: 5