X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <53CE9EF8.1010802@sonic.net> Date: Tue, 22 Jul 2014 10:27:20 -0700 From: Dave Curtis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] Octagon flag on Pad[] References: <53C69EB6 DOT 6030003 AT sonic DOT net> <53C6B815 DOT 10108 AT sonic DOT net> <1405875201 DOT 394 DOT 7 DOT camel AT pcjc2lap> <53CDEB64 DOT 2010408 AT sonic DOT net> <201407220443 DOT s6M4hntJ019894 AT envy DOT delorie DOT com> <53CE0243 DOT 9030005 AT sonic DOT net> <201407221550 DOT s6MFoRSA014818 AT envy DOT delorie DOT com> In-Reply-To: <201407221550.s6MFoRSA014818@envy.delorie.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-ID: C;+LfIb8UR5BGRgE2zUc16mQ== M;AtoAcMUR5BGRgE2zUc16mQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd Reply-To: geda-user AT delorie DOT com On 07/22/2014 08:50 AM, DJ Delorie wrote: > http://www.bourns.com/data/global/pdfs/SRR6038.pdf > Start with this example of a round-cornered rectangle, copy/pasted from the RS-274X spec: %AMRECTROUNDCORNERS* 0 Rectangle with rounded corners. * 0 Offsets $4 and $5 are interpreted as the * 0 offset of the flash origin from the pad center. * 0 First create horizontal rectangle. * 21,1,$1,$2-$3-$3,0-$4,0-$5,0* 90 Copyright Ucamco NV. 0 From now on, use width and height half-sizes. * $9=$1/2* $8=$2/2* 0 Add top and bottom rectangles. * 22,1,$1-$3-$3,$3,0-$9+$3-$4,$8-$3-$5,0* 22,1,$1-$3-$3,$3,0-$9+$3-$4,0-$8-$5,0* 0 Add circles at the corners. * 1,1,$3+$3,0-$4+$9-$3,0-$5+$8-$3* 1,1,$3+$3,0-$4-$9+$3,0-$5+$8-$3* 1,1,$3+$3,0-$4-$9+$3,0-$5-$8+$3* 1,1,$3+$3,0-$4+$9-$3,0-$5-$8+$3*% Then add a primitive circle with exposure "off" to erase the circle, and another primitive rectangle with exposure "off" to erase the rest of the gap. Done. That flashes the whole footprint in one go. Or, you could create a macro for just one of the pads by doing a base rectangle, a filler rectangle at the top, two circles for the round corners, and one circle with exposure "off". Then use that pad twice to create the part footprint. Overall, this would be a simpler macro.