X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1kagN9g6MIT4WQ16ccLzpehrdZ+/2UgcvgDgZy1RMas=; b=IJEX9KaOw8ksZ1y1RROR/yI50C45yrIg+azpUtGaMLAJveQYAEo53BB/c6NVc75L43 jR0kw0KPbaEZ2LtLvaAPSUsJlMqZXxXqao1pNkdGkMh7ECIgponOoD+D8h0DQxomfdUg SBbpDtgob04t2a0zMd6oAmISRM2+OjaaysYaZPuwKIGgzcBxfpM2dwdNh9HdY4Xms+ZH nHh2qjZ3EzTvrI77p9cPuDNQ279AHxxpKc9LrmGe+LAEIAUtCIH/k4HifIpxZL4KcJiP xbYhsUIlhDdWDj+OP5hUhckrCinQh4oOAf0ObGtmY/VYgzBb4vRXjwr5wPMWw9lLzqAO uf+Q== MIME-Version: 1.0 X-Received: by 10.182.96.137 with SMTP id ds9mr1353561obb.58.1439778346346; Sun, 16 Aug 2015 19:25:46 -0700 (PDT) In-Reply-To: References: <201508160552 DOT t7G5qBPo025284 AT envy DOT delorie DOT com> Date: Mon, 17 Aug 2015 11:55:46 +0930 Message-ID: Subject: Re: [geda-user] PCB footprints - what is the best way to change origin location on existing footprint? From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user Content-Type: multipart/alternative; boundary=047d7b2e4024e3ae7d051d78844f Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --047d7b2e4024e3ae7d051d78844f Content-Type: text/plain; charset=UTF-8 It is merely the coordinates of the point that all other elements in the footprint are relative to. If the origin (a,b) is not in the set of of element coordinate (x,y), where xmin < a < xmax, or ymin < b < ymax, then your origin will lie outside of the footprint, and this will sometimes cause you grief, i.e. trying to place a power connector footprint along the edge of a board, and it won't go right up against the edge like you want, because the origin would then lie beyond the boundary of the board. Does that make sense? Erich. On Mon, Aug 17, 2015 at 1:36 AM, Dave Williams ( dave DOT williams DOT lists AT gmail DOT com) [via geda-user AT delorie DOT com] < geda-user AT delorie DOT com> wrote: > Yes - you can visually reset the origin by cut/paste and re-saving the > footprint. FWIW, > I tried different values for 'mark_x' and 'mark_y' in the footprint > file. I did not see the > footprint origin change position. I understand all other pins and > footprint features are > relative to this origin. But now I'm curious, what does a 0,0 value for > the origin actually > mean? Relative to what? > > Thanks, > > Dave > > On Sat, Aug 15, 2015 at 11:52 PM, DJ Delorie wrote: > >> >> > Assuming an existing PCB footprint. Is the only way to change >> > the origin or diamond location (mark_x and mark_y) is by making >> > changes to the footprint file? >> >> The origin is the "0,0" point that all the other parts of the >> footprint are referenced to, so it's actually hard to change the >> footprint file directly. >> >> You can move a footpring in pcb itself by pasting the footprint into a >> blank layout, selecting it, and cutting it (the position of the cursor >> when you cut is the "mark" for the footprint), and "save buffer >> elements to file". >> > > --047d7b2e4024e3ae7d051d78844f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It is merely the coordinates of the point t= hat all other elements in the footprint are relative to.

If th= e origin (a,b) is not in the set of of element coordinate (x,y), where xmin= < a < xmax, or ymin < b < ymax, then your origin will lie outs= ide of the footprint, and this will sometimes cause you grief, i.e. trying = to place a power connector footprint along the edge of a board, and it won&= #39;t go right up against the edge like you want, because the origin would = then lie beyond the boundary of the board.

Does that make sens= e?

Erich.


On Mon, Aug 17, 2015 at 1:36 AM, D= ave Williams (dave.william= s DOT lists AT gmail DOT com) [via geda-u= ser AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Yes - you can= visually reset the origin by cut/paste and re-saving the footprint.=C2=A0 = FWIW,
I tried different values for=C2=A0 'mark_x' and 'mark= _y' in the footprint file.=C2=A0 I did not see the
footprint origin= change position.=C2=A0 I understand all other pins and footprint features = are
relative to this origin.=C2=A0 But now I'm curious, what does a= 0,0 value for the origin actually
mean?=C2=A0 Relative to what?=C2=A0 =

Thanks,

<= div>Dave

On Sat, Aug 15, 2015 at 11:= 52 PM, DJ Delorie <dj AT delorie DOT com> wrote:

> Assuming an existing PCB footprint.=C2=A0 Is the only way to change > the origin or diamond location (mark_x and mark_y) is by making
> changes to the footprint file?

The origin is the "0,0" point that all the other parts of = the
footprint are referenced to, so it's actually hard to change the
footprint file directly.

You can move a footpring in pcb itself by pasting the footprint into a
blank layout, selecting it, and cutting it (the position of the cursor
when you cut is the "mark" for the footprint), and "save buf= fer
elements to file".


--047d7b2e4024e3ae7d051d78844f--