fritzing-app icon indicating copy to clipboard operation
fritzing-app copied to clipboard

Custom part with family "Generic IC" doesn't flip correctly in schematic view

Open vanepp opened this issue 1 year ago • 0 comments

Current Behaviour

Load part (after removing the trailing .zip) in to Fritzing

5V RELAY 2.0-fixed.fzpz.zip

schematic view of loaded part is correct

bug

save the sketch as bug1.fzz.zip

bug1.fzz.zip

then exit fritzing without saving the loaded parts then reload the saved sketch, schematic is still correct.

bug1

now in schematic view select the part and flip horizontal then save the sketch to

bug2.fzz.zip

then exit fritzing and reload bug2.fzz. In schematic and the part is corrupted. The text appears to have moved 0.1in right in relation to the part.

bug2

It will now stay this way when the part is flipped horizontal again or saved to the .fzz file again which appears to be a bug.

bug3

If the family in the .fzp file is changed from

<properties>
  <property name="family">Generic IC</property>
  <property name="package">DIP (Dual Inline) [THT]</property>
  <property name="pins">6</property>
  <property name="pin spacing">300mil</property>
  <property name="chip label">5V RELAY</property>
  <property name="hole size"></property>
  <property name="editable pin labels">false</property>
  <property name="layer"></property>
  <property name="part number"></property>
  <property name="variant">variant 9</property>
 </properties>

to

<properties>
    <property name="family">5V relay</property>
    <property name="package">DIP (Dual Inline) [THT]</property>
    <property name="pins">6</property>
    <property name="pin spacing">300mil</property>
    <property name="chip label">5V RELAY</property>
    <property name="hole size"/>
    <property name="editable pin labels">false</property>
    <property name="layer"/>
    <property name="part number"/>
    <property name="variant">variant 9</property>
  </properties>

as in this part

5V RELAY 2.0-fixed-better.fzpz.zip

the part works correctly, indicating the parts factory code is probably causing the problem when it processes the family name.

Build:

Version 1.0.2 (bCD-1901-0-dbdbe34c 2023-12-20) 64 [Qt 6.5.3]

Operating System: Windows 10

Steps to reproduce:

see Current Behaviour

Expected Behaviour

The part should flip horizontal correctly even if the family is Generic IC.

vanepp avatar Mar 09 '24 16:03 vanepp