GETSPLINEPOINT
(Statement)
[Version 2.3 or later]

Gets the viapoints for a registered free curve motion.

<Approach point> = GETSPLINEPOINT (<Free curve trajectory number>, <Viapoint number>)

Outputs each viapoint designated by <Viapoint number> for the free curve designated by <Free curve trajectory number> to the <Viapoint>. The <Viapoint> is a type P variable.

Designating an unregistered viapoint results in error "685C Number of free curve pass point mismatch".

PROGRAM PRO1
|
|
TAKEARM
|
|
CLRSPLINEPOINT 5
|
'Clears all viapoints for the free curve with
'trajectory 5.
|
SETSPLINEPOINT 5, P4
|
'Sets P4 as the first viapoint for the free
'curve with trajectory 5.
|
SETSPLINEPOINT 5, P1
|
'Sets P1 as the second viapoint for the free
'curve with trajectory 5.
|
SETSPLINEPOINT 5, J5
|
'Sets J5 as the third viapoint for the free
'curve with trajectory 5.
|
P10=GETSPLINEPOINT(5,2)
|
'Sets the second viapoint for the free curve
'with trajectory 5 as P10.
'(The data for P1 is set as P10.)
|