Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I draw two construction point on the WP. and then move one point to the other point position.
The whole process recorded by loading recorder.
Show the code as below:
-------------------------------------------------------------------
;%RECORDING-BEGIN at 11:20:59 11/17/2016
;%SD-VERSION: SolidDesigner 13.01 05-Feb-2005
;! Note, the contents of this file may not be supported by future versions of the application.
preselect
C_POINT
(gpntwc -1.631800 59.495359 2.262562 "vport1")
(gpntwc 10.670876 64.303302 2.262562 "vport1")
complete
preselect
MOVE_2D :select
(gpntwc -6.298333 62.747791 2.262562 "vport1")
(gpntwc 2.751912 54.121777 2.262562 "vport1")
:DIRECTION
(gpntwc -1.631800 60.343820 2.262562 "vport1")
(gpntwc 11.236516 64.161892 2.262562 "vport1")
complete
preselect
;%RECORDING-END at 11:22:05 11/17/2016
-----------------------------------------------------
I found that the point world coordinate not the same.
Is the world coordinate (gpntwc) dynamic or static in the viewport?
Best regards.
Justin
Solved! Go to Solution.
Hi Justin,
You are drawing world coordinates onto a WP, resulting in a 2D coordinate on your WP.
If you would reposition the WP, the coordinate of this point will change of course.
A viewport is a window onto your world coordinate system, so if you will zoom, pan, rotate, it will visually be another location.
The easiest way to verify your 0,0,0 in world coordinates is to create a Workplane without any options (Workplane -> New). The origin of the workplane (you can show the axes in the show options), is the origin of the world coordinates.
Wim
Hi Justin,
You are drawing world coordinates onto a WP, resulting in a 2D coordinate on your WP.
If you would reposition the WP, the coordinate of this point will change of course.
A viewport is a window onto your world coordinate system, so if you will zoom, pan, rotate, it will visually be another location.
The easiest way to verify your 0,0,0 in world coordinates is to create a Workplane without any options (Workplane -> New). The origin of the workplane (you can show the axes in the show options), is the origin of the world coordinates.
Wim
Thank you for your explaination.
Best regards
Kting