Coordinate Transformation using Map LISP API

By Partha Sarkar

How to use
Map LISP function ade_projptforward to achieve coordinate transformation?

 

Here is a
LISP code snippet which demonstrates the same :



;;Coordinate transform with LISP.


(defun c:test (/ result pt)
(ade_projsetsrc “LL”)
(ade_projsetdest “ITALY-W-ROME”)
(setq result(ade_projptforward ‘(10.0 20.0 0.0)))
(if(null result)
(prompt “nError in Transformation “)
)
(princ result)
);


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading