delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/05/13/15:54:22

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <1431546811.11338.33.camel@linetec>
Subject: Re: [geda-user] Free rotate and exported centroid (XY) file question
From: "Richard Rasker (rasker AT linetec DOT nl)" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Date: Wed, 13 May 2015 21:53:31 +0200
In-Reply-To: <201505131826.t4DIQWuQ002817@envy.delorie.com>
References: <1431514980 DOT 2827 DOT 26 DOT camel AT linetec>
<201505131730 DOT t4DHUISw031045 AT envy DOT delorie DOT com>
<1431541322 DOT 2827 DOT 46 DOT camel AT linetec>
<201505131826 DOT t4DIQWuQ002817 AT envy DOT delorie DOT com>
Organization: Linetec
X-Mailer: Evolution 3.10.4-0ubuntu2
Mime-Version: 1.0
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

DJ Delorie schreef op wo 13-05-2015 om 14:26 [-0400]:
> Consider a part with 16 pins in a row (sip) but staggered
> left-right-left-right etc.  Is the part rotated, or not?

Ah, I understand ... and I just found the full explanation here:
http://pcb.geda-project.org/pcb-20110918/pcb.html#Centroid-File-Format

> The XY code in src/hid/bom.c rounds angles to multiples of 90 to avoid
> being confused by such things.  I.e. it only works for parts that
> haven't been free-rotated.

So a part's rotation from its initial positioning is not a separately
stored parameter, but calculated from the positions of its pins -- and
this would mean that the XY file does not reflect the correct rotation
angle of free-rotated parts. OK, so indeed this appears to be a
limitation inherent to PCB.

The obvious question now is if there's a relatively easy way to get the
correct angle definitions for free-rotated parts in the XY file.
I guess I'll just keep a separate list with the refdes and rotation
angle of each of these parts, and create a small script to update the XY
file with these values, to be executed after the XY export.

Anyway, thank you again for your explanation. Things like this remind me
why open source can so very pleasant to work with.

Best regards,

Richard Rasker

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019