I am unable to create and 3Drotate a 2D PIO in the same script.
Procedure NewPIORect;
VAR
PIORect : handle;
OK : boolean;
BEGIN
PIORect :=createcustomobjectN('PIORect', 0,0,0,FALSE);
{setrot3D(PIORect ,90,0,0,0,0,0);}
OK := SetEntityMatrix(PIORect ,0,0,0,90,0,0);
END;
run(NewPIORect);
I tried booth the SetEntityMatrix function and the setrot3D.
If I try to rotate it later with another script, it works fine
ex:
{setrot3D(LSactlayer,90,0,0,0,0,0);}
message(SetEntityMatrix(LSactlayer,0,0,0,90,0,0));
Is this another bug, or am I doing something wrong?
PS: -This is just an example. My PIO is complex and I really need to insert and rotate it from another script. I cannot insert it directly
-I need the control points in 3D, that is why I need a 2D PIO and not A 3D PIO with 2D objects in it.
Thanks