LP694455 new file format for fpw files
Bert Timmerman edited this page Apr 26, 2015
·
9 revisions
A better human readable format.
Readability for humans can be improved by using key-value pairs.
For instance:
footprint_type="DIP" pad_shape="circular"
give an instant recognition of the context of the value.
Another advantage is that parsing can now be achieved in a "while" loop until the EOF (end of file) condition is reached, and the order of the data becomes less important and thus less sensitive to errors or omissions.
Yet another advantage is that key that are not available in the fpw file will not overwrite default values.
Thus pcb-fpw only reads the data that is in the file, and the rest of the needed data is for the user to complete by filling the entries in the User Interface.
A complete fpw file for a chip capacitor may look like this:
fpw_version="0.0.13" footprint_filename="CAPC3216X130N.fp" footprint_name="CAPC3216X130N" footprint_type="CAPC" footprint_units="mm" footprint_refdes="" footprint_value="" package_body_length=3.400000 package_body_width=1.800000 package_body_height=1.300000 package_is_radial=0 footprint_author="" footprint_dist_license="GPL" footprint_use_license="unlimited" footprint_status="experimental" license_in_footprint=1 attributes_in_footprint=0 number_of_pins=2 number_of_columns=0 number_of_rows=0 pitch_x=3.000000 pitch_y=0.000000 count_x=0.000000 count_y=0.000000 pad_shape="rectangular" pin_pad_exceptions_string="" number_of_exceptions=0 pin_1_position="Upper left" pad_diameter=0.000000 pin_drill_diameter=0.000000 pin1_square=0 pad_length=1.150000 pad_width=1.800000 pad_clearance=0.075000 pad_solder_mask_clearance=0.075000 thermal=0 thermal_nopaste=0 thermal_length=0.000000 thermal_width=0.000000 thermal_clearance=0.000000 thermal_solder_mask_clearance=0.000000 fiducial=0 fiducial_pad_diameter=0.000000 fiducial_pad_clearance=0.000000 fiducial_pad_solder_mask_clearance=0.000000 silkscreen_package_outline=1 silkscreen_indicate_1=1 silkscreen_length=1.100000; silkscreen_width = 1.600000; silkscreen_line_width=0.200000 courtyard=1 courtyard_length=4.700000 courtyard_width=2.300000 courtyard_line_width=0.005000 courtyard_clearance_with_package=0.000000 c1=0.000000 g1=0.000000 z1=0.000000 c2=0.000000 g2=0.000000 z2=0.000000 remark="" warning=""
Bert Timmerman.
pcb-fpw version 0.0.13 ?
Last update: April 26th, 2015.