New string replacement options for kicad assets

User defined fields of the symbol can now be referenced in the footprint because the user fields are propagated from eeschema to pcbnew when updating the board.

The texts including variables are still used as-is, unresolved, when propagating and can’t necessarily be resolved in pcbnew, so using e.g. hierarchical sheet user fields isn’t possible. You would only get the unresolved variable name in pcbnew. For this see https://gitlab.com/kicad/code/kicad/-/issues/5005.

Now the hierarchical sheets can be fully parameterized and the result is seen in the schematic and in the layout. Look into the attached project.
hierarchical_sheet_with_parameters.zip (7.4 KB)

2 Likes

This is amazing! :slight_smile:

Jeff disabled text replacement in reference designators. The reasons should be clear: they are mostly made automatically, should be simple, short and predictable, are exported to many files which would create problems with variables, backannotation would be problematic, could cause other unforeseeable problems, it’s difficult to find useful use cases for text variable in them, other EDA’s probably don’t have such a feature…

I guess nobody used that possibility which was available for a while.


If someone still finds unresolved text variables slipping to exported files where they should be resolved, see https://gitlab.com/kicad/code/kicad/-/issues/5285 and https://gitlab.com/kicad/code/kicad/-/issues/5287.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.