cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Is the world coordinate (gpntwc) dynamic or static in the viewport?

bjyuen
12-Amethyst

Is the world coordinate (gpntwc) dynamic or static in the viewport?

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

ACCEPTED SOLUTION

Accepted Solutions
wvangeem
12-Amethyst
(To:bjyuen)

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

View solution in original post

2 REPLIES 2
wvangeem
12-Amethyst
(To:bjyuen)

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

bjyuen
12-Amethyst
(To:wvangeem)

Thank you for your explaination.

Best regards

Kting

Announcements


Top Tags