# Assigning connectors in Parts editor

**URL:** <https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447>\
**Category:** parts help\
**Created:** [March 18, 2022, 11:58pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447 "2022-03-18T23:58:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristian\_c](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@cristian\_c](https://forum.fritzing.org/u/cristian_c)\
**Post date:** [March 18, 2022, 11:58pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/1 "2022-03-18T23:58:00Z")

</div>

Hi, I’m trying to create a new part (breakout board) starting from Generic IC in Fritzing (filling form inside Connectors tab too). I’ve created the svg breadboard view in Inkscape and I’ve loaded the svg file using parts editor inside fritzing but when I try to save the new part, I get the following message:

> This part has 6 unassigned connectors across 1 views. Until all connectors are assigned to SVG elements, the part will not work correctly. Exiting the parts editor now is fine, as long as you remember to finish the assignments later.

How can I assign connectors into Fritzing in order to show the part properly?

![fritzing_message](https://forum.fritzing.org/uploads/default/original/2X/4/463864e185e67d900a24902f5e30f3fa2c4bbdf6.jpeg)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 19, 2022, 12:05am UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/2 "2022-03-19T00:05:15Z")

</div>

Upload the .fzpz file for the part (upload is 7th icon from the left in the reply menu) and one of us will tell you what is wrong. Clicking OK on the error message will write the part to your mine parts bin. From there right click on the part and select Export part which will write the .fzpz file to the local file system for upload.

Peter

---

<div class="post-metadata">

**Author:** ![cristian\_c](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@cristian\_c](https://forum.fritzing.org/u/cristian_c)\
**Post date:** [March 19, 2022, 2:58pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/3 "2022-03-19T14:58:22Z")

</div>

Ok, here is the fzpz part (Sparkfun MCP4725) as appearing in Fritzing:

[DIP - 6 pins.fzpz](https://forum.fritzing.org/uploads/short-url/mll0Y1yqqMSerf3Gtk3TV96mUe.fzpz) (5.8 KB)

And here is also .svg as it should appear properly and as created in Inkscape:

![mcp4725_new](https://forum.fritzing.org/uploads/default/original/2X/6/6a7da637aae4ecc11b5f87ea92a29665ee863159.svg)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 19, 2022, 3:24pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/4 "2022-03-19T15:24:33Z")

</div>

Your svg is misconfigured, as is the fzp file. The svg currently looks like this:

 ![capture](https://forum.fritzing.org/uploads/default/original/2X/8/8c2b272231899bfac4ff4970cddae596379d82b8.jpeg)

Which is missing the breadboard layerid (the top red circle) and the connector names as set in the fzp file. It should look like this:

 ![capture1](https://forum.fritzing.org/uploads/default/original/2X/9/906ed0d9d346b537bc1da8f35924b0555854cf67.jpeg)

which is this svg

![6a7da637aae4ecc11b5f87ea92a29665ee863159-fixed](https://forum.fritzing.org/uploads/default/original/2X/9/902db440c0bfe1e63176f20208ff145b5ba91b86.svg)

If you unzip the .fzpz file you will find a file called

part.MCP4725\_0b209649dd860fe342f521e54cf50b68\_2.fzp

which specifies the names of the layerID (breadboard) and pins (connector0pin - connector5pin) that need to be in the svg.

```
<breadboardView>
 <layers image="breadboard/MCP4725_0b209649dd860fe342f521e54cf50b68_2_breadboard.svg">
  <layer layerId="breadboard"/>

```

and the required pin names in the svg file in the connectors section (the svgId field in this case):

```
<connector id="connector0" name="pin1" type="male">
 <description>Vout</description>
 <views>
  <breadboardView>
   <p svgId="connector0pin" terminalId="connector0terminal" layer="breadboard"/>
  </breadboardView>
   </layers>
  </breadboardView>

```

In this case you don’t need the terminalId and it could be removed from the .fzp file, but will be ignored if it isn’t in the svg. As well you need to change the family from Generic IC to something else as Generic IC will replace your part with a Generic IC if you change a field in Inspector. Changing the family to MCP4725 is what I would do here.

```
 <properties>
  <property name="family">Generic IC</property>
  <property name="variant">variant 47</property>

```

to

```
 <properties>
  <property name="family">MCP4725</property>
  <property name="variant">variant 47</property>

```

This can be done in Parts Editor in the meta data section as well. These tutorials (which applies to the current version of Fritzing) may help as well

> [@Fritzing PART CREATION Video Tutorial Series](http://forum.fritzing.org/t/fritzing-part-creation-video-tutorial-series/2647):
>
> NEW FASTER PART MAKING VIDEOS AT THE BOTTOM-[Fritzing Parts Fast](https://forum.fritzing.org/t/fritzing-part-creation-video-tutorial-series/2647/19) ADVANCED FRITZING USER TIPS & TRICKS VIDEOS AT THE BOTTOM-[Fritzing Adv Tips & Tricks](https://forum.fritzing.org/t/fritzing-part-creation-video-tutorial-series/2647/15) A series of part creation videos - I’m not an expert, but there was nothing else around at the time. Use 1080p HD fullscreen to see details clearly - use gear symbol bottom right -. Recorded slowly for older people, so select a higher speed if it’s too slow. P.S. - Sorry about the voice/sound yum Fritzing Part Creation - Chapter1 - New Part …

> [@Part creation howto part 1 breadboard and pcb](https://forum.fritzing.org/t/part-creation-howto-part-1-breadboard-and-pcb/7692):
>
> Someone in this forum post requested help to fix up a part. So while doing that I decided to record what I needed to do in order to fix the part to provide a tutorial to create new / fix broken parts. If you start from the Tarjeta S4A EDU.fzpz file posted in the above thread, you should be able to recreate my improved part posted in the same thread. I started by loading the original part in to Fritzing, that indicates breadboard is (at first look anyway) pretty good, but schematic and pcb are…

edit:

In addition both schematic and pcb are incorrect. Schematic I replaced via this Inkscape extension:

> [@Fritzing-Schematic an Inkscape extension - released](https://forum.fritzing.org/t/fritzing-schematic-an-inkscape-extension-released/13394):
>
> Hi all! I have been working on an extension for Inkscape to create rectangular schematic symbol .svg files for use in Fritzing. I think I created a useful tool to speed up creation of schematic symbols, and now I want to share it with the community. It’s available on github: [https://github.com/revolt-randy/Fritzing-Schematic-an-Inkscape-Extension.](https://github.com/revolt-randy/Fritzing-Schematic-an-Inkscape-Extension.) To install: In Inkscape, the edit menu → user preferences → system will have an option for ‘User extensions’ - allowing you to open the folder to…

using these paramaters

 ![capture2](https://forum.fritzing.org/uploads/default/original/2X/f/f8f44c770f7362d5c61b7907ce3647968e98882a.jpeg)

 ![capture3](https://forum.fritzing.org/uploads/default/original/2X/6/6acb6015dc3858227a500841f13bbbf61d471589.jpeg)

pcb is a copy of breadboard modified to the requirements of pcb. Note the mounting holes are not drilled, if you want mounting holes you need to drag a hole part from pcb in core parts in to the sketch. Pin names are the same as your .fzp file (and don’t match any breakout board I see!) All these changes are in this part

[MCP4725-fixed.fzpz](https://forum.fritzing.org/uploads/short-url/1BZpMKQiWCsneTNu3cnwd6ZO9o6.fzpz) (4.4 KB)

Peter

---

<div class="post-metadata">

**Author:** ![cristian\_c](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@cristian\_c](https://forum.fritzing.org/u/cristian_c)\
**Post date:** [March 20, 2022, 5:46pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/5 "2022-03-20T17:46:46Z")

</div>

> Your svg is misconfigured, as is the fzp file. The svg currently looks like this:

> Which is missing the breadboard layerid (the top red circle) and the connector names as set in the fzp file. It should look like this:

When I I fix xml code inside Inkscape (as shown by the second picture), the six connectors disappear from svg picture 😞

> If you unzip the .fzpz file you will find a file called
> 
> part.MCP4725\_0b209649dd860fe342f521e54cf50b68\_2.fzp
> 
> which specifies the names of the layerID (breadboard) and pins (connector0pin - connector5pin) that need to be in the svg.

```auto
<breadboardView>
 <layers image="breadboard/MCP4725_0b209649dd860fe342f521e54cf50b68_2_breadboard.svg">
  <layer layerId="breadboard"/>

```

Fortunately, these lines allready appear inside .fpz file.

> and the required pin names in the svg file in the connectors section (the svgId field in this case):

```auto
<connector id="connector0" name="pin1" type="male">
 <description>Vout</description>
 <views>
  <breadboardView>
   <p svgId="connector0pin" terminalId="connector0terminal" layer="breadboard"/>
  </breadboardView>
   </layers>
  </breadboardView>

```

Unfortunately, there are some differences for this block inside .fzp file. My .fzp file appears as the following instead:

```auto
  <connector id="connector0" name="pin1" type="male">
   <description>Vout</description>
   <views>
    <breadboardView>
     <p svgId="connector0pin" terminalId="connector0terminal" layer="breadboard"/>
    </breadboardView>
    <schematicView>
     <p svgId="connector0pin" terminalId="connector0terminal" layer="schematic"/>
    </schematicView>
    <pcbView>
     <p svgId="connector0pin" layer="copper0"/>
     <p svgId="connector0pin" layer="copper1"/>
    </pcbView>
   </views>
  </connector>

```

> As well you need to change the family from Generic IC to something else as Generic IC will replace your part with a Generic IC if you change a field in Inspector. Changing the family to MCP4725 is what I would do here.

```auto
<properties>
  <property name="family">MCP4725</property>
  <property name="variant">variant 47</property>

```

Ok, I’ve fixed this quite easily, thanks.

> These tutorials (which applies to the current version of Fritzing) may help as well

I already looked at first two youtube videos from the first link some days ago.

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 20, 2022, 6:38pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/6 "2022-03-20T18:38:11Z")

</div>

> [@cristian\_c](#):
>
> When I I fix xml code inside Inkscape (as shown by the second picture), the six connectors disappear from svg picture 😞

If you post the modified svg that doesn’t work I will tell you what is wrong with it. One possibility for “missing” parts is that they are covered by something else and need to be moved down in the svg xml order.

> [@cristian\_c](#):
>
> Fortunately, these lines allready appear inside .fpz file.

The point is that there needs to be a group in the breadboard svg file that contains all the elements in the svg which has the name “breadboard” which is the layerId for breadboard set in the .fzp file. Your original svg did not have that, my new svg does. Without the layerId the part will not export from Fritzing as an image which causes questions when someone else uses your part and it doesn’t export.

> [@cristian\_c](#):
>
> Unfortunately, there are some differences for this block inside .fzp file. My .fzp file appears as the following instead:

I only showed the part that refers to breadboard, the schematic and pcb sections need to be there as well, they just are not relevant to the terminalId in breadboard. As noted as there is no element called connector0terminal in the breadboard svg, the "terminalId =“connector0terminal” needs to be removed from the .fzp file for all the connectors. The issue is that the svg file needs to also have the elements that are specified in the svg file for the part to be correct. FritzingCheckPart.py (described in my tutorial) will check the part for you and flag various errors.

Peter

---

<div class="post-metadata">

**Author:** ![cristian\_c](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@cristian\_c](https://forum.fritzing.org/u/cristian_c)\
**Post date:** [March 22, 2022, 11:59pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/7 "2022-03-22T23:59:09Z")

</div>

> If you post the modified svg that doesn’t work I will tell you what is wrong with it. One possibility for “missing” parts is that they are covered by something else and need to be moved down in the svg xml order.

![mcp4725_new](https://forum.fritzing.org/uploads/default/original/2X/8/8b46eebcc63539a75de8cb127898342e113a860e.svg)

> I only showed the part that refers to breadboard, the schematic and pcb sections need to be there as well, they just are not relevant to the terminalId in breadboard.

I was just talking about this line:

```auto
   </layers>

```

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 23, 2022, 12:08am UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/8 "2022-03-23T00:08:33Z")

</div>

Cut and paste error, the bottom two lines shouldn’t be there …

Peter

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [March 23, 2022, 5:06am UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/9 "2022-03-23T05:06:13Z")

</div>

The svg elements with the connector pin ids are empty. They contain the id, but no coordinates or any graphics. That is why they are invisible.

Those are also svg ‘path’ elements. That should technically work, but sometimes there are issues with path elements for the Fritzing ‘special’ elements. Circle, line, rect are all safer options. If something more complex is needed, a simple element plus additional graphics without the special id tag overlapping the simple element also works. The centre of the element with the id is the ‘snap’ point used by Fritzing for connecting wires. Circle elements aligned with the pin ‘holes’ in the background path is probably what you want.

```xml
      <path id="connector0pin"/>
      <path id="connector1pin"/>
      <path id="connector2pin"/>
      <path id="connector3pin"/>
      <path id="connector4pin"/>
      <path id="connector5pin"/>

```

---

<div class="post-metadata">

**Author:** ![cristian\_c](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@cristian\_c](https://forum.fritzing.org/u/cristian_c)\
**Post date:** [March 29, 2022, 8:18pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/10 "2022-03-29T20:18:02Z")

</div>

> [@microMerlin](#):
>
> The svg elements with the connector pin ids are empty. They contain the id, but no coordinates or any graphics. That is why they are invisible.

Oh, ok. It could be not guessed by the screenshot ([https://forum.fritzing.org/uploads/default/original/2X/9/906ed0d9d346b537bc1da8f35924b0555854cf67.jpeg](https://forum.fritzing.org/uploads/default/original/2X/9/906ed0d9d346b537bc1da8f35924b0555854cf67.jpeg)). Btw, thanks to [Profile - vanepp - fritzing forum](https://forum.fritzing.org/u/vanepp) for MCP4725-fixed.fzpz 🙂

I’ve made another part that showed similar issue with connectors and I’ve fixed breadboard view using Inkscape xml editor as suggested by vanepp:  
 ![sdcard_breakout](https://forum.fritzing.org/uploads/default/original/2X/e/e913183bebbc41bcde24a7f761192c338bc8be2f.svg)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 29, 2022, 9:01pm UTC](https://forum.fritzing.org/t/assigning-connectors-in-parts-editor/15447/11 "2022-03-29T21:01:37Z")

</div>

That looks fine. I would probably add a fill of #ffffff to the pads like this so there is an indication of the hole though. That is purely cosmetic, it will work fine without it.

 ![capture](https://forum.fritzing.org/uploads/default/original/2X/f/f5660d2e4471289550b752dbe5110359ea8f47ca.jpeg)

The pins however are not on a 0.1in boundary and they should be. Here I changed tool bar units to in and the x is 0.52in on connector0,

 ![capture1](https://forum.fritzing.org/uploads/default/original/2X/b/bb5c617a4d6a48da782f118b26664e719d21a44d.jpeg)

on connector1 x is 0.156in when it should be 0.152in

![capture2](https://forum.fritzing.org/uploads/default/original/2X/1/11ebb07489afc3ea4fb75ff1925590f75a709bc8.jpeg)

Peter
