Create a line with length and angle

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!
simsiem
Posts: 46
Joined: Tue Feb 02, 2016 7:19 am

Create a line with length and angle

Post by simsiem »

Hi,

I am in the draft workbench with an empty file. There I do the following.
  1. Select the line tool.
  2. Select a start point anywhere.
  3. Select the angle checkbox.
  4. Set the angle to -75 deg (actually, the value does not matter).
  5. Set the length to 0,2m.
  6. Press enter and enter again to confirm this coordinate.
Nothing really happens. But if I do the same with a length of 200mm, a line is created. It also works for a length of 1m or 1,4m, for example. Thus it seems the leading zero is a problem.

Do I do something wrong? Can you observe the same?

Best regards

Simon

--
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9613 (Git)
Build type: None
Branch: master
Hash: 0c34f1b749fbb116058caa54754961c6dcb4f92a
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Create a line with length and angle

Post by Willem »

You have to type in 0,2 as a length. When you type ,2 it won't work. Freecad needs the 0 before the comma. Is this the solution for your problem?
simsiem
Posts: 46
Joined: Tue Feb 02, 2016 7:19 am

Re: Create a line with length and angle

Post by simsiem »

Hi Willem,

I did it exactly as I wrote it with a leading zero. The problem still exists.

Simon
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Create a line with length and angle

Post by NormandC »

Hello Simon,

I'm getting the same issue. In fact I'm struggling to get a line with any value, using the input fields. I managed to make it work once, that's it.

OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9613 (Git)
Build type: None
Branch: master
Hash: 0c34f1b749fbb116058caa54754961c6dcb4f92a
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Create a line with length and angle

Post by cox »

I have had some issues using different navigation styles when using the task pane for Draft tools.

Normally I am using touchpad, but when I get into trouble in Draft task panel I briefly change to Open Inventor or Cad.

For this though I do not seam to get any result this way, could however be related.
Need help? Feel free to ask, but please read the guidelines first
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Create a line with length and angle

Post by Willem »

I confirm I have the same problems. I also discovered that when I change the length in the Combo View the line in the drawing react as expected for values above 1 but when I use a value smaller than 1 the line in the drawing freezes
Schermafdruk van 2017-01-15 14-04-45.png
Schermafdruk van 2017-01-15 14-04-45.png (273.9 KiB) Viewed 7927 times
simsiem
Posts: 46
Joined: Tue Feb 02, 2016 7:19 am

Re: Create a line with length and angle

Post by simsiem »

The observation of Willem was very interesting. I tested the issue further and found out that the algorithm has not a problem with values < 1 but with the procedure of beginning the entering of a value with 0. The computations are performed with every key press. Thus entering 0,2 calculates the point the first time for the length value 0. And the algorithm seems to stop or crash, when 0 is entered.

I created a bug for tracking this issue: http://www.freecadweb.org/tracker/view.php?id=2860.
Grey
Posts: 37
Joined: Tue Nov 29, 2016 6:09 am

Re: Create a line with length and angle

Post by Grey »

Hi guys,

Could this be a possible walk around? :

1. after you do
simsiem wrote: Select the line tool.
Select a start point anywhere.
Select the angle checkbox.
Set the angle to -75 deg (actually, the value does not matter).
set the length to a > 1 value like 10,2;
2. after you create the line, go to property->draft->length and change from 10,2 to 0,2, by deleting "1" in front of "0".

Can this avoid the
simsiem wrote:stop or crash, when 0 is entered.
??
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Create a line with length and angle

Post by bejant »

simsiem wrote:I created a bug for tracking this issue: http://www.freecadweb.org/tracker/view.php?id=2860.
And it's already fixed!
simsiem
Posts: 46
Joined: Tue Feb 02, 2016 7:19 am

Re: Create a line with length and angle

Post by simsiem »

Thanks a lot. I'll give it a try this weekend.
Post Reply