Serious rotation bug results in incorrect angle values.

Report bugs here
Post Reply
Message
Author
dominicc
Posts: 6
Joined: 08 Jan 2019, 04:50

Serious rotation bug results in incorrect angle values.

#1 Post by dominicc » 09 Mar 2019, 19:13

Hi,

Today I found the cause of components having an incorrect rotation that is 180 degrees out on some boards I'm making.

Essentially, if you group, rotate and change sides of components you can end up with angle values that are 180 degrees out.

This is quite serious in that the visually that pattern is correct, but the numerical "Angle" value will be wrong. If you then export a Pick and Place file from DipTriace the angle will be incorrect!

It means that every single pattern in every single file I have ever create needs to be checked! :o

I made a screen capture video showing the issue:



Please can a DipTrace developer:

a) fix the root cause.
b) fix patterns with incorrect angle values at file-opening time and notify the user that 1) the in-editor file has been corrected and 2) show a list of affected reference designators so they can be reviewed/checked.

Manually fixing is quite impossible in some cases as it requires disconnecting component traces, removing the component, renewing the schematic from the design, re-positioning the component, reconnecting traces. However sometimes when disconnecting traces some related vias and traces get moved to a new net which means when the layout is renewed from related schematic the uncorrected traces to the new net are deleted! There really needs to be a fix that is applied when opening a file.

Many thanks.

dominicc
Posts: 6
Joined: 08 Jan 2019, 04:50

Re: Serious rotation bug results in incorrect angle values.

#2 Post by dominicc » 09 Mar 2019, 19:56

Here's the files I created in the video.
issue-20190309-rotation-bug.zip
You do not have the required permissions to view the files attached to this post.

User avatar
KevinA
Posts: 373
Joined: 18 Dec 2015, 15:35

Re: Serious rotation bug results in incorrect angle values.

#3 Post by KevinA » 09 Mar 2019, 23:41

Do an Export then Import as DipTrace ASCII, then generate a P&P and see what happens.

dominicc
Posts: 6
Joined: 08 Jan 2019, 04:50

Re: Serious rotation bug results in incorrect angle values.

#4 Post by dominicc » 10 Mar 2019, 08:16

angle is still 180 after exporting to ascii, creating new file and then importing from ascii file.
export as ascii.zip
You do not have the required permissions to view the files attached to this post.

dominicc
Posts: 6
Joined: 08 Jan 2019, 04:50

Re: Serious rotation bug results in incorrect angle values.

#5 Post by dominicc » 10 Mar 2019, 08:34

I extracted the U1 and U2 components from the ASCII export, saved them to their own files and used 'diff' to show the differences. See attached.
u1-u2-diff.zip

Notably, on U2 the Flipped and HorizontalFlip setting is set to "Y" and the Orientation value is set to 2 vs 0 on U1.

All the pad X/Y positions are opposite between U1 and U2. e.g.

U1 - Pad 1 "1" "" -8.1 -5.715
U2 - Pad 1 "1" "" 8.1 5.715

All the Shapes positions are opposite between U1 and U2. e.g.

U1
(Shape 0 "N" 0 0 0 0 0 0 0 "" "" "N" 0 0 0 0 0 0)
(Shape 1 "N" 0 -0.176 -0.5 -0.176 0.5 0 0 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 0.176 -0.5 0.176 0.5 0.378 0 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 -0.176 0.5 0.176 0.5 0 -0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 -0.068 -0.5 -0.176 -0.5 0 0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 0.068 -0.5 0.176 -0.5 0 0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 6 "N" 0 -0.068 -0.5 0 -0.4 0.068 -0.5 "" "" "N" 0 0 0 0 -1 0)

U2
(Shape 1 "N" 0 0.176 0.5 0.176 -0.5 0 0 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 -0.176 0.5 -0.176 -0.5 -0.378 0 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 0.176 -0.5 -0.176 -0.5 0 0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 0.068 0.5 0.176 0.5 0 -0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 1 "N" 0 -0.068 0.5 -0.176 0.5 0 -0.02 "" "" "N" 0 0 0 0 -1 0)
(Shape 6 "N" 0 0.068 0.5 0 0.4 -0.068 0.5 "" "" "N" 0 0 0 0 -1 0)
You do not have the required permissions to view the files attached to this post.

User avatar
KevinA
Posts: 373
Joined: 18 Dec 2015, 15:35

Re: Serious rotation bug results in incorrect angle values.

#6 Post by KevinA » 10 Mar 2019, 11:00

U2 is screwed, I tried making U3 lose it's angle but couldn't. I guess there is a reason for my method of doing a 'pre-layout' where I have all the parts in a schematic but not wired and create a PCB with no nets. I can figure out if the parts will fit and which side they will be on. As far as I can tell you will have to replace the pattern to fix the angle issue, I tied updating from the library but it didn't change the angle.

Tomg
Expert
Posts: 1342
Joined: 20 Jun 2015, 14:39

Re: Serious rotation bug results in incorrect angle values.

#7 Post by Tomg » 10 Mar 2019, 13:24

"...when the layout is renewed from related schematic the uncorrected traces to the new net are deleted..."

See if this pain-in-the-posterior workaround helps...
1) Ungroup the rotated components.
2) Right-click on one of the ungrouped components, select "Disconnect Traces" in the pop-up menu and then delete the component.
3) Drop a new, identical component into the same exact location and make sure it has the same reference designator.
4) Right-click on the new component and select "Connect Traces" in the pop-up menu.
5) Repeat steps 2 through 4 (above) as needed for the remaining ungrouped components.
6) In the Main Menu click on "File", select "Renew Layout from Schematic" in the drop-down menu and choose "By RefDes..." in the fly-out menu. The "By RefDes" option should re-link the schematic components to the new PCB components without re-arranging/deleting any traces. After re-linking is accomplished, you can continue to use the usual "By Components..." option.
7) Resave your layout (Ctrl + S).
Tom

Alex
Technical Support
Posts: 3098
Joined: 14 Jun 2010, 06:43

Re: Serious rotation bug results in incorrect angle values.

#8 Post by Alex » 11 Mar 2019, 08:13

Thank you for the report, we confirm the bug. I have added it to our bug tracker. We will fix it in future versions.

dominicc
Posts: 6
Joined: 08 Jan 2019, 04:50

Re: Serious rotation bug results in incorrect angle values.

#9 Post by dominicc » 14 Mar 2019, 20:40

Tomg:

I'll give your suggestion a go next time I find a bad pattern in one of my designs. I hadn't tried replacing manually before renewing schematic.

Alex:

Great, I look forward to a new release, hopefully soon so that I and the rest of the diptrace users don't create any more files with bad data in them!

Post Reply