Author Topic: Getpoint Precision.  (Read 7464 times)

0 Members and 1 Guest are viewing this topic.

Didge

  • Bull Frog
  • Posts: 211
Re: Getpoint Precision.
« Reply #15 on: February 22, 2006, 12:27:38 PM »
I was completing some code to automatically generate pipeline longsections by picking a 2d polyline drawn above a TIN (see 'triangulation' thread) when I noticed the issue. The coding seems to work well, but I can't remember getpoint ever rounding display co-ordinates before.

CAB appears to be correct in that acad is retaining the decimals but displaying them rounded, this gives me peace of mind in my calculations, but it still doesn't explain whats forcing the rounding.

If I start a new drawing all seems fine again, so I still suspect a system variable at the heart of things.
Think Slow......

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Getpoint Precision.
« Reply #16 on: February 22, 2006, 12:50:53 PM »
The number displayed by getpoint will round more as you move away form 0,0
In the NEW drawing, are you near 0,0 ?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Didge

  • Bull Frog
  • Posts: 211
Re: Getpoint Precision.
« Reply #17 on: February 22, 2006, 01:29:55 PM »
As predicted "DOH !!" - <slaps head>  Guess who feels stupid now?

Yes that was it CAB, the rounding is indeed relative to the origin, in all my years of coding I've never noticed this before.

If this place wasnt virtual I'd buy you guys a beer.

Thank-you all for your assistance, I will be able to sleep tonight, albeit while wearing my stupid hat   :oops:
Think Slow......