Home > Community > Forums > PCB SKILL > SKILL function question

## 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

# SKILL function question

Last post Tue, Oct 30 2012 6:56 AM by chads108. 2 replies.
 Started by chads108 29 Oct 2012 01:59 PM. Topic has 2 replies and 711 views
• #### Mon, Oct 29 2012 1:59 PM

• Joined on Thu, Mar 29 2012
• Plano, TX
• Posts 124
• Points 2,015
SKILL function question
 I am a beginner at best in SKILL, but I am trying to modify an existing routine.  Here is the part of routine I am working on.  Previously, I filled in a Radius in a form, but I would like to modify the routine so that Radius is 20% of Height, with a maximum Radius of 0.25 and a minimum of 0.01.  The text in bold is what I started, but like I said, I don't really know what I am doing.  I am sure this is an easy fix.  Can one of you experts show me the correxct way to handle this please. (defun _ns_spad_outform_run ()    let((Length Height Radius ls1 ls2 ls3 ls4 ls5 ls6 ls7 ls8 ls9 pad_path)        Length   = axlFormGetField( _ns_spad_outform "boxx")        Height   = axlFormGetField( _ns_spad_outform "boxy");        Radius  = axlFormGetField( _ns_spad_outform "radius")    (  if ( (Height > 1.25) then Radius = .25      else    Radius = Height*.2)     ) Thanks.Chad
• Post Points: 20
• #### Mon, Oct 29 2012 2:31 PM

• eDave
• Joined on Sun, Jul 13 2008
• Christchurch, 00-NZ
• Posts 687
• Points 14,555
Re: SKILL function question
 Radius = max(min(Height * 0.2, 0.25), 0.01) Dave Elder, Tait Communications
• Post Points: 20