Suppression of views in New Parts Editor
Problem To me it is a bit troublesome to edit the .fzp file to suppress a view and zip the .fzp file and .svg files back into the .fzpz file
Proposed Solution Can put checkboxes in individual views that says “suppress view”
What do you mean by "suppress view" ?
So taking a breadboard for example, the part will not appear in schematic and pcb views
Linking back to the “suppress view” checkbox function, the part will not appear in that specific view (e.g. pcb view) when checked
Breadboards have a specific implementation in Fritzing. For regular parts, this is not intended.
Yes but there are some parts that need pcb view to be suppressed (as they cannot be mounted on a pcb board…)
If it doesn't have an electric connection, you can simply use the "Breadboard Image" part.
If it does have an electric connection, you should choose a typical connector, even if the part is not directly mounted to the PCB. Examples:
The parts is heat sensitive, and should be not directly soldiered on. Therefore it comes with a M40-1100300 connector.
To integrate it in Fritzing (and because Fritzing doesn't yet have a "cable" feature), it has a standard 3 pin header footprint.
What do you mean by "Breadboard Image" part.
There is a core part called breadboard image.
OK! Also sorry for unclear info earlier. So like for this part here https://forum.fritzing.org/t/433mhz-wireless-remote-control-switch-dc-12v-10a-rf/26354/7
After much difficulty, I gave up in suppressing the pcb view. With the help of @vanepp I suppressed PCB view (as you can't possibly mount it on a pcb board). So it may be easier to just have a checkbox to suppress a view
He is basically asking for a parts editor option to reuse breadboard view as the pcb view renderer like this
<pcbView> <layers image="breadboard/fc-51_breadboard.svg"> <layer layerId="breadboard"/> </layers> </pcbView>
because you need a renderer in pcb (Fritzing will error if you just delete the pcbView field in the .fzp file.) This creates a part with a blank pcb view (as the breadboard view won't render in pcb) which creates the desired effect. Basically he is asking for this to be a select box in parts editor (editing the fzp file is the only current way I know to do this.)
I assume you want to create the part in Fritzing to create an image like the below, copied from your link. This illustration seems dangerours.
At least use different illustrations for low and high voltage connectors.
Have a gap between low and high voltage parts of the circuit.
Anyhow, the use case is basically the same as for any other module, the user just wants a component for a breadboard style wiring diagram (without the breadboard). Still, other users might be disapointed if they don't find connectors when the want to create a schemtic or PCB using this?
My point is, there are few valid us cases to just duplicate the breadboard view. It might get easier to create such parts, as a secondary effect, e.g when we improve creating parts for simulation, or better templates for part creation in general. But Visio-like diagrams are not a primary goal.
While I'm not really sure, I think what he is asking for an option to do this in the fzp file from the parts editor with a tick box. Basically suppress the pcb view by replacing it with the breadboard view (which has the effect of creating a blank pcb view and is something I often do by editing the fzp file.) That is what I did for him in this case to suppress the pcb view and I think what he is requesting. Fritzing appears to need a renderer for pcb view so you can't just delete the pcb section, but it recognizes that it shouldn't render the breadboard view in pcb and thus leaves it blank without complaining as it does when pcb view is deleted.
<breadboardView> <layers image="breadboard/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_breadboard.svg"> <layer layerId="breadboard"/> </layers> </breadboardView> <schematicView> <layers image="schematic/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_schematic.svg"> <layer layerId="schematic"/> </layers> </schematicView> <pcbView> <layers image="pcb/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_pcb.svg"> <layer layerId="silkscreen"/> <layer layerId="copper1"/> </layers>
replaced by this
<breadboardView> <layers image="breadboard/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_breadboard.svg"> <layer layerId="breadboard"/> </layers> </breadboardView> <schematicView> <layers image="schematic/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_schematic.svg"> <layer layerId="schematic"/> </layers> </schematicView> <pcbView> <layers image="breadboard/prefix0000_6fbdb41430491ba080df8d6e0bc872e1_11_breadboard.svg"> <layer layerId="breadboard"/> </layers>
which will produce a blank pcb view for the part.
Yes that’s what I need. I’ll attach an illustration later once I get home
@KjellMorgenstern So basically ticking this checkbox
it'll change the .fzp file from
<views>
<iconView>
<layers image="icon/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_icon.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="pcb/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_pcb.svg">
<layer layerId="silkscreen"/>
<layer layerId="copper0"/>
<layer layerId="copper1"/>
</layers>
</pcbView>
</views>
to
<views>
<iconView>
<layers image="icon/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_icon.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="breadboard/prefix0000_0d35483fbd5d2862c6e9d1474958a60c_1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</pcbView>
</views>
and when this checkbox
is ticked, it changes the .fzp file from
<connector id="connector0" name="pin1" type="male">
<description>pin 1</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector0pin" terminalId="connector0terminal"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector0pin" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector0pin"/>
<p layer="copper1" svgId="connector0pin"/>
</pcbView>
</views>
</connector>
to
<connector id="connector0" name="pin1" type="male">
<description>pin 1</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector0pin" terminalId="connector0terminal"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector0pin" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
</pcbView>
</views>
</connector>
@KjellMorgenstern Any updates?
OK @KjellMorgenstern so back to this. Would it be a good idea to have this
I understood that you want this. I already said it is not a priority.
Did you read https://forum.fritzing.org/t/breadboard-generic-part/33265 ?
In general, I think adding a button to simply ignore the PCB is not a solution.