I think this works as it should.
CreateParametricCurve() works in the local coordinate system, so the transform of the box has no effect. Since you add the created body to myPart which has a zero transform, it will end up in a different place.
Johannes
I have this problem too, when I load a geometry, and move it to a position for example (0.2,0.2,0.2), I want to get some points on one of the edges, so I use “body.shells[0].wires[0].coedges[0].edge.GetPointAtParameter()”, all the points appear in the place where the geometry was load; you have explaind it works in the local coordinate system, but can I set it works in world coordinate system? can we resolve this problem? I just want to get the points on the gometry after the moving, and then I can create target on the edge:thank you very much
in robotstudio4 API. there is a funtion called “createtargetoncurve”, it exist in robotstudio5 API? I don’t find it;
Johannes
I have this problem too, when I load a geometry, and move it to a position for example (0.2,0.2,0.2), I want to get some points on one of the edges, so I use “body.shells[0].wires[0].coedges[0].edge.GetPointAtParameter()”, all the points appear in the place where the geometry was load; you have explaind it works in the local coordinate system, but can I set it works in world coordinate system? can we resolve this problem? I just want to get the points on the gometry after the moving, and then I can create target on the edge:thank you very much
in robotstudio4 API. there is a funtion called “createtargetoncurve”, it exist in robotstudio5 API? I don’t find it;