Difference between revisions of "API Panel.Position.MoveTo"
(XML import of new API docs) |
(XML Import to change Variable types into Variable Types) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
<sidebar>API contents</sidebar> | <sidebar>API contents</sidebar> | ||
Moves the object to the given coordinates relative to its parent | Moves the object to the given coordinates relative to its parent | ||
Line 13: | Line 11: | ||
==Parameters== | ==Parameters== | ||
− | [[Variable | + | [[Variable Types|HANDLE]] ''Handle'' |
:The position or component to update | :The position or component to update | ||
:''The default value for this parameter is: '''''this''' | :''The default value for this parameter is: '''''this''' | ||
− | [[Variable | + | [[Variable Types|FLOAT]] ''X'' |
:Local coordinate X to update with | :Local coordinate X to update with | ||
− | [[Variable | + | [[Variable Types|FLOAT]] ''Y'' |
:Local coordinate Y to update with | :Local coordinate Y to update with | ||
− | [[Variable | + | [[Variable Types|FLOAT]] ''Z'' |
:Local coordinate Z to update with | :Local coordinate Z to update with | ||
Revision as of 11:09, 10 June 2013
<sidebar>API contents</sidebar> Moves the object to the given coordinates relative to its parent
Contents
Parameters
HANDLE Handle
- The position or component to update
- The default value for this parameter is: this
FLOAT X
- Local coordinate X to update with
FLOAT Y
- Local coordinate Y to update with
FLOAT Z
- Local coordinate Z to update with
Return value
This call does not return a value
Detailed description
No additional information
Examples
Calling in a calculation
- Add to a calculation icon:
::Panel.Position.MoveTo(handle, x, y, z)
Flowcode example file
Download File:SIMAPI Panel Position MoveTo.fcf and open it in Flowcode v6. In this example, there are three cubiods that represent Axis X,Y,Z. Note they are coloured exactly as the panel axis indicator which represents your viewing position. There is a sphere also on the panel.
The MoveTo(h,x,y,z) function moves the object specified to a new set of coordinates. In the example file, the program moves the sphere from it's original location of x10,y10,z0 to x100,y75,z0, waits a second and then moves the sphere back to it's original coordinates.
The screenshots below show the effect and also highlight the code used by the example.