KiBuzzard icon indicating copy to clipboard operation
KiBuzzard copied to clipboard

Maximum allowed label length?

Open dzalf opened this issue 1 year ago • 2 comments

Dear @gregdavill

First of all, thank you for this amazing tool.

I am working on a PCB project that requires some long labels for some custom terminals.

Something like this:

image

where each number is separated by approximately 10 spaces for single digits and 8 spaces for double digits.

However, I cannot make a label past the number 12. If I try to add the remaining 3 numbers the label simply doesn't show the rest of the numbers.

The expected total length of the label is around 107 mm

Is there a restriction on the script to allow for a maximum length?

Thanks again

dzalf avatar Sep 10 '24 07:09 dzalf

Hey @dzalf,

Yes there is a limitation. If you locate where the plugin is installed on your system you can adjust it, this is the line. https://github.com/gregdavill/KiBuzzard/blob/main/KiBuzzard/dialog/dialog.py#L269

The limit is mostly there to avoid a situation where a user pastes a kibuzzard label into the text field, and freezing KiCad by trying to generate a 2000 character label.

gregdavill avatar Sep 10 '24 11:09 gregdavill

Hi @gregdavill

Thanks for the prompt response.

The rationale behind the imposed limit makes sense.

I will try your solution and report back.

Cheers

BW

dzalf avatar Sep 12 '24 07:09 dzalf