Skip to content

Latest commit

 

History

History
263 lines (213 loc) · 4.9 KB

README.md

File metadata and controls

263 lines (213 loc) · 4.9 KB

fzp-specs

read more about the fzp format at:
https://github.com/fritzing/fritzing-app/wiki/2.1-Part-file-format

Sample fzp

TO DO: use template.fzp to load the structure of the fzp

<?xml version="1.0" encoding="UTF-8"?>
<module fritzingVersion="x.y.z" moduleId="mod-id-rev" referenceFile="ref.file">
  <version>x.y.z</version>
  <title>part-name</title>
  <description>some words about the part</description>
  <author>your-name</author>
  <date>yyyy-mm-dd</date>
  <url>http://part.org</url>
  <label>IC</label>
  <tags>...</tags>
  <taxonomy>...</taxonomy>
  <language>...</language>
  <family>...</family>
  <variant>...</variant>
  <properties>...</properties>
  <views>...</views>
  <connectors>...</connectors>
  <buses>...</buses>
</module>

A complete sample file can be found here

template.fzp ckeckLevel

the template.fzp has a checkLevel identifier for the automated travis checks.
this checkLevel defines how important the xml-tag of the fzp-xml is, for the fritzing-part.

Specification

module

<module fritzingVersion="x.y.z" moduleId="mod-id-rev" referenceFile="ref.file">
fritzingVersion

?

moduleId

?

referenceFile

?

version

<version>x.y.z</version>

Store the part version

title

<title>part-name</title>

Store the part title

description

<description>some words about the part</description>

Store the part description (you can use simple html, as defined by Qt's Rich Text)

author

<author>your-name</author>

Store the part author

date

<date>yyyy-mm-dd</date>

Store the part date

url

<url>http://part.org</url>

Store the part's url if it is described on a web page

label

<label>IC</label>

Store the default part label prefix

tags

<tags>
  <tag>...</tag>
  <tag>tagvalue</tag>
  <tag>...</tag>
</tags>

Store the part's tags

tag

taxonomy

<taxonomy>...</taxonomy>

language

?

family

<family>...</family>

Store the parts family (what other parts is this related to)

variant

<variant>...</variant>

Store the part's variant (this makes it unique from all other parts in the same family)

properties

<properties>
  <property name="x">...</property>
  <property name="x">the-value</property>
  <property name="x">...</property>
</properties>

Store the part's properties

property

views

<views>
  <breadboardView>
    <layers image="breadboard/part.svg">
      <layer layerId="breadboard"/>
    </layers>
  </breadboardView>
  <schematicView>
    <layers image="schematic/part.svg">
      <layer layerId="schematic"/>
    </layers>
  </schematicView>
  <pcbView>
    <layers image="pcb/part.svg">
      <layer layerId="copper0"/>
      <layer layerId="silkscreen"/>
      <layer layerId="copper1"/>
    </layers>
  </pcbView>
  <iconView>
    <layers image="icon/part.svg">
      <layer layerId="icon"/>
    </layers>
  </iconView>
</views>
iconView
breadboardView
pcbView
schematicView
layers
layer

connectors

<connectors>
  <connector id="connector15" name="B1" type="male">
    <description>Channel 1 voltage low</description>
    <views>
      <breadboardView>
        <p layer="breadboard" svgId="connector15pin" terminalId="connector15terminal"/>
      </breadboardView>
      <schematicView>
        <p layer="schematic" svgId="connector15pin" terminalId="connector15terminal"/>
      </schematicView>
      <pcbView>
        <p layer="copper1" svgId="connector15pin"/>
        <p layer="copper0" svgId="connector15pin"/>
      </pcbView>
    </views>
  </connector>
</connectors>
connector
description

buses

<buses>
</buses>