Ticket #3987 - Draft Label feature doesn't carry out a straight arrow in 3D mode

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Ticket #3987 - Draft Label feature doesn't carry out a straight arrow in 3D mode

Post by Vincent B »

Label from Draft workbench.
-Arrow isn't straight on the line.
-Circle still stuck at 1mm and extra circles are made.
:shock:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Attachments
Capture.PNG
Capture.PNG (43.9 KiB) Viewed 1829 times
Last edited by Kunda1 on Mon Jun 17, 2019 6:32 am, edited 1 time in total.
Reason: Updated thread title to reflect created ticket number and name
kisolre
Veteran
Posts: 4163
Joined: Wed Nov 21, 2018 1:13 pm

Re: What wrong with label

Post by kisolre »

Could you post a file that exibits this behavior? Or steps to reproduce?
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Post by Vincent B »

Just make a label...

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16653 (Git)
Build type: Release
Branch: master
Hash: aaae82970461c10b76281f4e4454ab086b5f7f21
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Attachments
Capture1.JPG
Capture1.JPG (18.75 KiB) Viewed 1755 times
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: What wrong with label

Post by yorik »

Everything seems normal for me... What steps did you follow exactly?
Screenshot from 2019-05-23 13-18-46.png
Screenshot from 2019-05-23 13-18-46.png (27.73 KiB) Viewed 1710 times
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Post by Vincent B »

Have a look with my file. Please check label text, arrows and line width.
Attachments
label.FCStd
(5.83 KiB) Downloaded 45 times
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: What wrong with label

Post by chrisb »

I can see the issue opening your file, but if I create a new label it is ok here.

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16790 (Git)
Build type: Release
Branch: master
Hash: 15f440525e59c3caf89f847a490981abf5a45f8f
Python version: 3.7.3
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kisolre
Veteran
Posts: 4163
Joined: Wed Nov 21, 2018 1:13 pm

Re: What wrong with label

Post by kisolre »

Code: Select all

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16687 (Git)
Build type: Release
Branch: master
Hash: ff1fb11af15a7c5f7f0ba3ef79588e128f397c2c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
Attachments
Labels.JPG
Labels.JPG (13.21 KiB) Viewed 1670 times
User avatar
quick61
Veteran
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: What wrong with label

Post by quick61 »

I am getting the error when the line is taken into 3D space. Keeping the label in 2 D space, everything looks correct, change the working plane to some angle and do something like -

Code: Select all

l = Draft.makeLabel(targetpoint=FreeCAD.Vector (0.0, 6.140144073823542, 10.0),direction='Vertical',distance=8.623526292565531,labeltype='Label',placement=FreeCAD.Placement(FreeCAD.Vector (-9.967470493654348, 13.36130042488455, -4.0628612702266),FreeCAD.Rotation(0.4358218936365907, -0.39338361463588356, -0.22007762128379885, 0.7790214691348933)))
- things start to get wonky, (I believe that's the technical tearm for it...)

Edit: Attached the file.
Arrow_on_working_plane.FCStd
(9.14 KiB) Downloaded 63 times
Mark

**build date 2019/05/22 22:17:47**

OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
This post made with 0.0% Micro$oft products - GOT LINUX?
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: What wrong with label

Post by chrisb »

Good find! I can confirm the wonky behaviour here on a skewed working plane.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Post by Vincent B »

it should deserve a ticket, isn't it?
Post Reply