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

Variable Breadboard Wire Width #3594

Open
TSprech opened this issue Jan 13, 2020 · 6 comments
Open

Variable Breadboard Wire Width #3594

TSprech opened this issue Jan 13, 2020 · 6 comments
Labels
challenging start No deep knowledge of Fritzing required, but C++ skills, a debugger and sharp focus enhancement

Comments

@TSprech
Copy link

TSprech commented Jan 13, 2020

Problem

I am developing a sizable library of large parts for use with Fritzing. An issue that presented itself along the way is the inability to change visual wire sizes in the breadboard view. The ability to change wire "gauge" or "mils" as it is defined in the save file, would be extremely helpful to convey more accurate visuals. I did not want to just request a feature without contributing some work towards the solution, so seen below is the testing I did and what I believe could remedy the problem.

Proposed Solution

In an uncompressed .fz file composed of a simple breadboard and wires, a snippet of the code pertaining to "Wire1" can be seen:

<title>Wire1</title> <views> <breadboardView layer="breadboardWire"> <geometry z="3.50002" x="279.001" y="153.001" x1="0" y1="0" x2="0" y2="-99.0006" wireFlags="64"/> <wireExtras mils="22.2222" color="#25cc35" opacity="1" banded="0"/> <connectors>

For this enhancement, we are focusing on the <wireExtras mils="22.2222"

This results in the following standard Fritzing breadboard view:
Normal Wires

My proposed solution is exposing the "mils" variable for users to edit in the Inspector menu, similar to how you would change resistance on a resistor or any other number field so the save file would look like this:
(I changed the wire mils to 1/2 normal size, or from 22.2222 to 11.1111, however this works both for increasing and decreasing wire size as seen in the picture)

<title>Wire1</title> <views> <breadboardView layer="breadboardWire"> <geometry z="3.50002" x="243.001" y="153.001" x1="0" y1="0" x2="0" y2="-99.0006" wireFlags="64"/> <wireExtras mils="11.1111" color="#cc1414" opacity="1" banded="0"/> <connectors>

With the change to <wireExtras mils="11.1111"

Which resulted in the following output in Fritzing when opening the file:
Wider Wires

As seen above, it appears Frizting already supports altering the value of this variable and rendering it, so I just ask that it be user definable in the Inspector side menu when a wire is selected. Thanks.

@KjellMorgenstern KjellMorgenstern added challenging start No deep knowledge of Fritzing required, but C++ skills, a debugger and sharp focus enhancement labels Jan 22, 2020
@cowboydaniel

This comment was marked as off-topic.

@failiz

This comment was marked as off-topic.

@cowboydaniel

This comment was marked as off-topic.

@cowboydaniel

This comment was marked as off-topic.

@KjellMorgenstern
Copy link
Member

The graphical display is one thing. One way to implement it could be with a wire gauge property, with default settings according to https://en.wikipedia.org/wiki/IEC_60228 .

Most of those diameters would be unfit for breadboards, but might be useful for other illustrations or circuits.

Comparison_wire_gauge_sizes

@szelenka
Copy link

This is possible in the PCB view in version 1.0.3:

  • super fine (8 mil)
  • extra thin (12 mil)
  • thin (16 mil)
  • standard (24 mil)
  • thick (32 mil)
  • extra thick (48 mil)

IMO, having it according to AWG would be the best to have in Breadboard view.

Is there a PR open to expose the "mils" or "width" parameter in the Inspector for wires in Breadboard view? If not, can someone point me in the right direction for which section of the code needs to be altered to add this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenging start No deep knowledge of Fritzing required, but C++ skills, a debugger and sharp focus enhancement
Projects
None yet
Development

No branches or pull requests

5 participants