← Back to team overview

kicad-developers team mailing list archive

Re: SetPosition to SetPos0

 

Not sure if this would make sense or just trouble...  :-)

%extend BOARD_ITEM
{
        %pythoncode
        {
                def SetPos(self,p):
                        self.SetPosition(p)
                        self.SetPos0(p)

                def SetStartEnd(self,start,end):
                        self.SetStart(start)
                        self.SetStart0(start)
                        self.SetEnd(end)
                        self.SetEnd0(end)
        }
}


2012/5/10 Miguel Angel Ajo Pelayo <miguelangel@xxxxxxx>

>
>   I have an issue, and yet couldn't understand the real difference.
>
>  a)  If I set a pad (in module, in board) "position",and save it to disk
> (brd or .mod), then the pad position won't get saved.
>
>  b)  If I set a pad (in module, in board) "pos0", and save it to disk, the
> pad will get saved.
>
> Ok :-)
>
> then if I do the same, but instead if saving, I try to visualize it in the
> board, I get the opposite:
>
>   a) I get all pads at (0,0) for the "pos0" case, and
>
>   b) well positioned for "position" case.
>
>
> What's the exact idea of those 2 positions?
>
> --
>
> Miguel Angel Ajo Pelayo
> http://www.nbee.es
> +34 636 52 25 69
> skype: ajoajoajo
>



-- 

Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo

References