← Back to team overview

kicad-developers team mailing list archive

Re: Re: EEScheme Value position

 

Frank Bennett a écrit :


I am generating library parts and schematic instances for
Edif2kicad. Where in the code or method I can use to produce
predictable coordinates for the reference and values given
the symbol position? Using the page orgin (upper left)
appears that a more negative y coordinate doesn't always mean
farther down the schematic page!

Frank


You could have a look to eelibs_draw_components.cpp
(see DrawTextField() and DrawLibPartAux().).

Coordinates are for a "normal" orientation component.
Each component put in a schematic has an "orientation matrix" which reflects its orientation and mirroring option. and screen coordinates are calculated from the coordinates (given in normal orientation) and the orientation matrix component.


--
Jean-Pierre CHARRAS
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex

Recherche :
Grenoble Image Parole Signal Automatique (GIPSA - INPG)
46, Avenue Félix Viallet
38031 Grenoble Cedex






References