fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 834 forks source link

Making adjustments to the Y position of a part introduces an offset to the X co-ordinate instead. #4051

Closed GOTO-GOSUB closed 1 year ago

GOTO-GOSUB commented 1 year ago

I have just started to make a simple PCB layout that uses 2 rows of headers. I've started with these and once they are placed accurately I will lock them in place. However in trying to place these headers I cannot get the Y position to place accurately. This is not the small offset (rounding error ?) that seems to be common to Fritzing, rather that if I make a change to the Y position by typing the desired numbers in, the X position changes instead.

Entering a value into the Y location should not affect the X co-ordinate.

If I manually drag the part then the XY co-ordinates change as expected but I cannot place the part accurately (I have turned off all the "snap to grid" type options that I can find).

My version of Fritzing and my operating system:

1.0.0 / Windows 10

A copy of the affected file and screenshot is attached.

Fritzing Coordinate bug

Bare Expansion Board.zip

vanepp commented 1 year ago

One thing to try is to zoom pcb vie out to maximum. There was (I'm not sure if it is fixed in 1.0.0) a roundoff error related to image scale that made the positioning inaccurate. Zooming all the way out before making the coordinate change helps.

GOTO-GOSUB commented 1 year ago

Thank you for the suggestion. I've tried that and I still cannot place the headers at a specific point (eg a Y value of 17mm). Plus we've still got the issue where a change to the Y co-ordinate affects the X which is my biggest concern. A small offset error is going to be less than my hand assembly but I don't expect the placement of the part to change along the X axis when I make a change to the Y value.

KjellMorgenstern commented 1 year ago

Entering coordinates only works as expected if rotation is 0. If any rotation is applied, coordinates get messed up.

KjellMorgenstern commented 1 year ago

This is related to the fix fa4e7b9 .

Behavior before the commit: The inspector would show the same position for these two Rotations of R1. Position is marked with the red cross: r1_0

r1_90

When a part is rotated, the Inspector would show the wrong position.

After the fix, the position shown is always the top left corner of the item.

However, now changes applied through the Inspector are done in the coordinate system of the item, which is unexpected.

GOTO-GOSUB commented 1 year ago

Thank you to everyone who spent time on this, it is appreciated.