Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Use user-defined layer names in Additional Layers box #160

Open
TheColorman opened this issue Apr 25, 2024 · 0 comments
Open

[Request] Use user-defined layer names in Additional Layers box #160

TheColorman opened this issue Apr 25, 2024 · 0 comments

Comments

@TheColorman
Copy link
Contributor

When adding layers to the Additional Layers text box, the titles have to be the standard KiCad layers names. This makes sense for most layers, but custom user-defined layers (and sometimes even normal layers) usually have custom names.
E.g. in this example, the User.1 has been renamed F.glue in Board Setup, but you still need to search for User.1, and including F.glue does not work:
image
image

The only reason for this is because layer_info is indexed with 0 instead of 2 in these two sections of code:

def get_layer_names(board, active_only=True):
"""Returns a list of (active) layer names of the current board"""
plotPlan = get_plot_plan(board, active_only)
return [layer_info[0] for layer_info in plotPlan]

if self.board.IsLayerEnabled(layer_info[1]) or layer_info[0] in extra_layers:

I kept the KiCad layer names when adding the util in #152, but I think it would be more useful to be able to use the user-specified layer name directly. In theory changing these two lines should do it without affecting gerber generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant