Hi Dave,
I've tried to use the "Robot" object to get the position and there is a fuction for that but is the one i've already told you:
RimbaseLib__DHelperS4CurrentPositionGet (CAObjHandle objectHandle, ERRORINFO *errorInfo, CAObjHandle robpos, short *returnValue);
and it as you told me there seems to be something strange on this one because the "robpos" CAObjHandle it supposes to return the position of the robot, but is not passed by reference so it doesn't change its value. This is the only funtcion for the "Robot" object that returns the position, that's why i try to ask about the position with another object (there are anothers objects that return the position, but i haven't found any that works).
About what you tell me of initilizing the variables i agree that i should do it, but as i'm working in debug mode, i check the variables before they have to change and after that, so i see if they have changed.
Those are the data types it suppose to return the IPosition (into a variant), the one returned by RimbaseLib__DHelperS4CurrentPositionGet would have the same and some others including orient, external axis,...
Vector Properties
Property RAPID Type Equivalent
Pos(Num As Integer) As Single
.Pos(0) .x
.Pos(1) .y
.Pos(2) .z
Scalar Properties
Property RAPID Type Equivalent
x As Single .x
y As Single .y
z As Single .z
I'm working with the WebWareSDK 3.2, i'm not sure if there is some free information about it, but the help it has is oriented to VisualBasic.