I want to duplicate the references and values of components in pcbnew to layers User.1 and User.2.
To do this, I added footprints properties ${REFERENCE} and ${VALUES} that copy respectively the reference and value fields of the footprint.
In the properties popup , those fields are described as “text items”. I didn’t find a way to access and manipulate those fields in the python console. did I miss something in the API ?
Yeah, in addition to that post:
footprint has Drawings() list of all graphical items including custom text objects. But footprint’s built in reference and value text items are accessed directly with Reference() and Value(). If you want copy of those on another layer then easiest way is to access them, create a copy with constructor or Clone() method, change layer and then add to footprint using it’s Add() method.
thanks for your answers but maybe i did not explain correctly my problem :i dont want to copy Reference and Value values to another layer. i want to use the defined system variables defined in k6 that will keep my copy synchronous with the reference and value updated by schematic.
I have something like the attached image and want to access and work on the fields ${REFERENCE} and ${VALUE}