Hi Listers, 
 
I have a strange coordinate malfunction going on here. I have created a
script to create a layout for point data, the script generates a point
based on the coordinates of the user selection. This works fine once but
as soon as they layout is generated it warps the coordinates
dramatically. it goes from 144, -37 to 1763888.89, 1763888.89. I have
tried the same code with out the layout function and it works fine.
Something to do with the bounds????
 
Here is the code;
 
Set Map Layer 0 Editable

    Delete Object From "cosmetic1" 

        defselectX = CentroidX(Selection.obj)

        defselectY = CentroidY(Selection.obj)

    Set Window WindowID(1) Front max

Create Point Into Window WindowID(1)(defselectX, defselectY)

Layout 

    Set CoordSys Earth Projection 8, 116, "m", 147, 0, 0.9996, 500000,
10000000 Bounds (-7745844.29605, 2035.05684549) (8745844.29605,
19997964.9432)

    Set CoordSys Layout Units "cm"

        Create Frame (1.5,1.5) (19.5,18) Pen (1,2,0) Brush
(2,16777215,16777215) Title WindowInfo(WindowID(1),WIN_INFO_NAME)
FillFrame On

Any ideas???
 

Regards...

 

Morgan Ellingham

Citywide Service Solutions
GIS Technical Officer

Level 1, 150 Jolimont Rd, East Melbourne

Ph: (03) 9261 5065

Mob: 0419 145 666

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

Reply via email to