Author Topic: (vlax-curve-getpointatparam haupt_achse 0) -> nil?  (Read 1621 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
(vlax-curve-getpointatparam haupt_achse 0) -> nil?
« on: August 07, 2017, 04:08:59 AM »
I supposed that the "param 0" would return the starting point of my curve - but it returns nil. The end-param (9 in my example) returns the endpoinbt, and the "dist 0" returns also the starting point. Can it be explained why the "start parameter 0" returns nil instead of the starting point???

Code - Auto/Visual Lisp: [Select]
  1. nil
  2.  
  3. Befehl: (vlax-curve-getpointatparam haupt_achse 9)
  4. (811474.0 184382.0 0.0)
  5.  
  6. Befehl: (vlax-curve-getpointatparam haupt_achse 0.000001)
  7. (811350.0 184319.0 0.0)
  8.  
  9. Befehl: (vlax-curve-getpointatdist haupt_achse 0.00000)
  10. (811350.0 184319.0 0.0)
  11.  
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #1 on: August 07, 2017, 04:27:23 AM »
Move the object closer to the origin and repeat the test.

Peter2

  • Swamp Rat
  • Posts: 650
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #2 on: August 07, 2017, 04:59:27 AM »
Although this could only be an experimental solution - I still get nil
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #3 on: August 07, 2017, 09:12:53 AM »
What does this return?:
Code - Auto/Visual Lisp: [Select]
« Last Edit: August 07, 2017, 09:16:07 AM by roy_043 »

Peter2

  • Swamp Rat
  • Posts: 650
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #4 on: August 07, 2017, 11:11:35 AM »
0.00000000
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #5 on: August 07, 2017, 12:33:59 PM »
The issue is of course: Zero? Or almost zero?

But from a discussion with Bricsys I know that the AutoCAD curve functions can produce unexpected results.
I suggest you create a workaround.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #6 on: August 07, 2017, 01:05:19 PM »
How about:
Code - Auto/Visual Lisp: [Select]

ribarm

  • Gator
  • Posts: 3225
  • Marko Ribar, architect
Re: (vlax-curve-getpointatparam haupt_achse 0) -> nil?
« Reply #7 on: August 07, 2017, 01:20:26 PM »
Code - Auto/Visual Lisp: [Select]

That's the same as just :

Code - Auto/Visual Lisp: [Select]
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube