user part not loading
I created the following .fzp file in my .config/.../parts/user directory. It doesn't seem to load, at least it doesn't show up in the "Mine" tab, nor anywhere else. And even with the --debug flag, Fritzing seems silent.
I expected a new part to appear in the "Mine" tab.
Note that it defines a new family and that it uses image SVG files from the distribution (and they don't exist in .config/.../parts/sfg directory. But I have also tried copying the image files to said .config directory and it still doesn't seem to work.)
Note that if family is instead "FET-Transistor", it seems to work and a new package appears for an FET part (not a new part in "Mine", but a new package for the family.)
Note that I am also putting random numbers in the moduleID every time I try it.
So I hope you have an answer. I am still reading the source and debugging, but not making much progress.
<?xml version="1.0" encoding="UTF-8"?>
<module fritzingVersion="0.7.7b.08.14.6293" moduleId="change this randomly">
<version>0</version>
<author>Mr.T</author>
<title>Foo family JUMPER3 pkg</title>
<label>Q</label>
<date>2010-09-30</date>
<tags>
<tag>Transistor</tag>
<tag>FET</tag>
<tag>user part</tag>
<tag>SMD</tag>
</tags>
<properties>
<property name="package">JUMPER3 [SMD]</property>
<property name="family">Foo</property>
<property name="type">p-channel</property>
<property name="part number"></property>
</properties>
<description>Foo family in package JUMPER3.</description>
<views>
<iconView>
<layers image="icon/mosfet_p_channel_icon.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/mosfet_p_channel.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/fet_p.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="pcb/JUMPER3.svg">
<layer layerId="copper1"/>
<layer layerId="silkscreen"/>
</layers>
</pcbView>
</views>
<connectors>
<connector id="connector0" type="male" name="Gate">
<description>gate</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector0pin"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector0pin" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
<p layer="copper1" svgId="connector0pin"/>
</pcbView>
</views>
</connector>
<connector id="connector1" type="male" name="drain">
<description>drain</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector1pin"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector1pin" terminalId="connector1terminal"/>
</schematicView>
<pcbView>
<p layer="copper1" svgId="connector1pin"/>
</pcbView>
</views>
</connector>
<connector id="connector2" type="male" name="source">
<description>source</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector2pin"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector2pin" terminalId="connector2terminal"/>
</schematicView>
<pcbView>
<p layer="copper1" svgId="connector2pin"/>
</pcbView>
</views>
</connector>
</connectors>
</module>
Hi Bootchk,
It does not show up automatically in the Mine tab. You can find it by using the search field at the top of the parts bin--look for the title or one of the properties. Then you can drag it into the mine bin from the search bin.
- j
Alternatively, you can add it to your own mine bin by editing the xml for the bin.
- j
Thanks. That works.
My neive but wrong view is: all parts originate from a .fzp file and all .fzp files go to a bin.
I also didn't understand that you could drag parts between bins. I also have a neive view of that. I tried to drag my part to Core and Contrib, and that doesn't work. But you can drag from Core to Mine. It seems like the user's model is: the Mine bin is a set of symbolic links to parts that are in other bins (except for User parts that are never in another bin and not even in any bin unless you drag them from a search to the Mine bin.)
If so, the user interface is somewhat confusing: the Search and Mine bins are grouped with the other bins but behave differently. Also, most bins ( the GUI tabs) have titles such as "Core Parts" or "My Parts", except for the Search bin which does NOT have a title "Searched for parts." I think that violates a GUI guideline: all tabbed panes should be similar (very loosely speaking.) Of the tabs, only the "Mine" tab is a valid drag target (but Fritzing GUI allows the drag, having no effect.)
Also, when I closed Fritzing, it asked whether to save changes to "My Parts". I responded "Save" but there were no changes to .config/.../bins/my_parts.fzb.
Please pardon me if I discuss too much.
Post a Reply
Please login to post a reply.
