Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

CodeDing
en respuesta a: Anonymous

@Anonymous,

 

Sorry, I am very busy with work today. I will pick up on this later. The vla-get-latitude & vla-get-longitude only work with a geo-position marker. Which is probably the crude method I'm looking at approaching with since creating an entire geoid model seems excessive for me. 

 

For you to play with...

Create a marker with GEOMARKOINT

get lat/long with your own code.

 

Hint: 

 

(setq MyEnt (vlax-ename->vla-object (car (entsel "\nSelect your Marker: "))))

(print (strcat "\nLat: " (rtos (vla-get-latitude MyEnt)) "\nLong: " (rtos (vla-get-longitude MyEnt))))

Best,

~DD