Mailing list archives : pcb-rnd

ID:4735
From:Erich Heinzle <a1...@gmail.com>
Date:Mon, 1 Feb 2021 11:04:23 +1030
Subject:Re: eeschema->gschem (was: Re: [pcb-rnd] Feature Request - i understand)
in-reply-to:4733 from smilie <sm...@posteo.de>
replies: 4746 from smilie <sm...@posteo.de>
--000000000000b9e6c905ba3b8468
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 
The calculation is simple if the file format is well documented, indicating
how the origin for a symbol's transformations is specified.
 
It may be that no translations are needed beyond that associated with the
x,y location on the schematic, prior to and/or after application of the
rotation, but as i said, some refactoring will be needed, to allow a symbol
and it's elements to be rotated correctly.
 
Regards,
 
Erich
 
On Mon, 1 Feb 2021 07:56 smilie, <smilie@posteo.de> wrote:
 
> Hello Erich,
>
> I just saw it.
> The rotation matrix A, B, C, D.
> There is a discussion in the forum about it.
> But the calculation seems simple.
>
> | A B |
> | C D |
>
> then corresponds to a simplified rotation:
> 0 =C2=B0, 90 =C2=B0, 180 =C2=B0, 270 =C2=B0
> or mirrored
> 0 =C2=B0, 90 =C2=B0, 180 =C2=B0, 270 =C2=B0
>
> look here:
>
> https://forum.kicad.info/t/unit-orientation-mirror-matrix-explained/7839/=
2
> https://de.wikipedia.org/wiki/Drehmatrix
>
>
> Matrix multiplication is just:
>
> x '=3D x * A - y * B
> y '=3D x * C + y * D
>
> or so.
> The difficulty is to turn every element with it.
>
> Regards,
> smilie
>
>
>
>
> Am Fri, 29 Jan 2021 22:00:46 +1030
> schrieb Erich Heinzle <a1039181@gmail.com>:
>
> > I implemented kicad eeschema symbol/lib -> gschem symbol conversion, bu=
t
> > decided that I would need to refactor to allow eeschema schematic
> > conversion.
> >
> > I may give it a go at some point. It ground to a halt when I realised I
> had
> > to apply rotation matrices attached to symbols embedded in the eeschema
> > schematic to the individual respective symbols, with all of the attenda=
nt
> > issues wrt pin labels/text etc.
> >
> > Regards,
> >
> > Erich
> >
> > On Fri, 29 Jan 2021 02:27 , <rnd2@igor2.repo.hu> wrote:
> >
> > >
> > >
> > > On Thu, 28 Jan 2021, smilie wrote:
> > >
> > > >Thanks,
> > > >
> > > >is there a script converting kicad eeschem to geda gschem?
> > >
> > > Maybe this one:
> > >
> > > https://github.com/erichVK5/translate2geda
> > >
> > > Not sure if it does schematics, tho.
> > >
> > > >Or can i read the kicad netlist to gschem?
> > >
> > > AFAIK gschem is not like pcb-rnd, it can't load schematics in alien
> > > formats.
> > >
> > > >Sorry for all the questions.
> > > >It will decreasing.
> > >
> > > No worries, this list is for having these questions!
> > >
> > >
> > >
> > >
>
>
>
>
 
--000000000000b9e6c905ba3b8468
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 
<div dir=3D"auto">The calculation is simple if the file format is well docu=
mented, indicating how the origin for a symbol&#39;s transformations is spe=
cified.<div dir=3D"auto"><br></div><div dir=3D"auto">It may be that no tran=
slations are needed beyond that associated with the x,y location on the sch=
ematic, prior to and/or after application of the rotation, but as i said, s=
ome refactoring will be needed, to allow a symbol and it&#39;s elements to =
be rotated correctly.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"au=
to">Regards,</div><div dir=3D"auto"><br></div><div dir=3D"auto">Erich</div>=
</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Mon, 1 Feb 2021 07:56 smilie, &lt;<a href=3D"mailto:smilie@posteo.de">sm=
ilie@posteo.de</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello=
 Erich,<br>
<br>
I just saw it.<br>
The rotation matrix A, B, C, D.<br>
There is a discussion in the forum about it.<br>
But the calculation seems simple.<br>
<br>
| A B |<br>
| C D |<br>
<br>
then corresponds to a simplified rotation:<br>
0 =C2=B0, 90 =C2=B0, 180 =C2=B0, 270 =C2=B0<br>
or mirrored<br>
0 =C2=B0, 90 =C2=B0, 180 =C2=B0, 270 =C2=B0<br>
<br>
look here:<br>
<br>
<a href=3D"https://forum.kicad.info/t/unit-orientation-mirror-matrix-explai=
ned/7839/2" rel=3D"noreferrer noreferrer" target=3D"_blank">https://forum.k=
icad.info/t/unit-orientation-mirror-matrix-explained/7839/2</a><br>
<a href=3D"https://de.wikipedia.org/wiki/Drehmatrix" rel=3D"noreferrer nore=
ferrer" target=3D"_blank">https://de.wikipedia.org/wiki/Drehmatrix</a><br>
<br>
<br>
Matrix multiplication is just:<br>
<br>
x &#39;=3D x * A - y * B<br>
y &#39;=3D x * C + y * D<br>
<br>
or so.<br>
The difficulty is to turn every element with it.<br>
<br>
Regards,<br>
smilie<br>
<br>
<br>
<br>
<br>
Am Fri, 29 Jan 2021 22:00:46 +1030<br>
schrieb Erich Heinzle &lt;<a href=3D"mailto:a1039181@gmail.com" target=3D"_=
blank" rel=3D"noreferrer">a1039181@gmail.com</a>&gt;:<br>
<br>
&gt; I implemented kicad eeschema symbol/lib -&gt; gschem symbol conversion=
, but<br>
&gt; decided that I would need to refactor to allow eeschema schematic<br>
&gt; conversion.<br>
&gt; <br>
&gt; I may give it a go at some point. It ground to a halt when I realised =
I had<br>
&gt; to apply rotation matrices attached to symbols embedded in the eeschem=
a<br>
&gt; schematic to the individual respective symbols, with all of the attend=
ant<br>
&gt; issues wrt pin labels/text etc.<br>
&gt; <br>
&gt; Regards,<br>
&gt; <br>
&gt; Erich<br>
&gt; <br>
&gt; On Fri, 29 Jan 2021 02:27 , &lt;<a href=3D"mailto:rnd2@igor2.repo.hu" =
target=3D"_blank" rel=3D"noreferrer">rnd2@igor2.repo.hu</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, 28 Jan 2021, smilie wrote:<br>
&gt; &gt;=C2=A0 <br>
&gt; &gt; &gt;Thanks,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;is there a script converting kicad eeschem to geda gschem?=C2=
=A0 <br>
&gt; &gt;<br>
&gt; &gt; Maybe this one:<br>
&gt; &gt;<br>
&gt; &gt; <a href=3D"https://github.com/erichVK5/translate2geda" rel=3D"nor=
eferrer noreferrer" target=3D"_blank">https://github.com/erichVK5/translate=
2geda</a><br>
&gt; &gt;<br>
&gt; &gt; Not sure if it does schematics, tho.<br>
&gt; &gt;=C2=A0 <br>
&gt; &gt; &gt;Or can i read the kicad netlist to gschem?=C2=A0 <br>
&gt; &gt;<br>
&gt; &gt; AFAIK gschem is not like pcb-rnd, it can&#39;t load schematics in=
 alien<br>
&gt; &gt; formats.<br>
&gt; &gt;=C2=A0 <br>
&gt; &gt; &gt;Sorry for all the questions.<br>
&gt; &gt; &gt;It will decreasing.=C2=A0 <br>
&gt; &gt;<br>
&gt; &gt; No worries, this list is for having these questions!<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 <br>
<br>
<br>
<br>
</blockquote></div>
 
--000000000000b9e6c905ba3b8468--
 

Reply subtree:
4735 Re: eeschema->gschem (was: Re: [pcb-rnd] Feature Request - i understand) from Erich Heinzle <a1...@gmail.com>
  4746 Re: eeschema->gschem (was: Re: [pcb-rnd] Feature Request - i from smilie <sm...@posteo.de>