8000 Suppression of views in New Parts Editor · Issue #4214 · fritzing/fritzing-app · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Suppression of views in New Parts 8000 Editor #4214

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

Open
RAPTOR7762 opened this issue Jan 12, 2025 · 14 comments
Open

Suppression of views in New Parts Editor #4214

RAPTOR7762 opened this issue Jan 12, 2025 · 14 comments

Comments

@RAPTOR7762
Copy link
RAPTOR7762 commented Jan 12, 2025

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”

@KjellMorgenstern
Copy link
Member

What do you mean by "suppress view" ?

@RAPTOR7762
Copy link
Author
RAPTOR7762 commented Jan 12, 2025

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

@KjellMorgenstern
Copy link
Member

Breadboards have a specific implementation in Fritzing. For regular parts, this is not intended.

@RAPTOR7762
Copy link
Author
RAPTOR7762 commented Jan 12, 2025

Yes but there are some parts that need pcb view to be suppressed (as they cannot be mounted on a pcb board…)

@KjellMorgenstern
Copy link
Member
KjellMorgenstern commented Jan 12, 2025

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.
image
image

@RAPTOR7762
Copy link
Author

What do you mean by "Breadboard Image" part.

@KjellMorgenstern
Copy link
Member

There is a core part called breadboard image.

@RAPTOR7762
Copy link
Author
RAPTOR7762 commented Jan 29, 2025

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

@vanepp
< 8000 span data-view-component="true"> Copy link
Contributor
vanepp commented Feb 1, 2025

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.)

@KjellMorgenstern
Copy link
Member
KjellMorgenstern commented Apr 29, 2025

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.
Image
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.

@vanepp
Copy link
Contributor
vanepp commented Apr 29, 2025

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.

@RAPTOR7762
8000
Copy link
Author
RAPTOR7762 commented Apr 30, 2025

Yes that’s what I need. I’ll attach an illustration later once I get home

@RAPTOR7762
Copy link
Author
RAPTOR7762 commented May 2, 2025

@KjellMorgenstern So basically ticking this checkbox

Image

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

Image

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="m
8325
ale">
   <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>

@RAPTOR7762
Copy link
Author

@KjellMorgenstern Any updates?

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

3 participants
0