CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 6601:
Question
A
The ID command returns coordinates in the current UCS. If you want to get XYZ coordinates of the picked point always in the global, world UCS (WCS) - regardles of the active user coordinate system - you can use the following simple LISP macro.
Just save it to WID.LSP, load it with Appload and start the WID command (similar to ID):
;World ID
;3/2009 - www.cadstudio.cz
(defun C:WID ( / pt)
(setq pt (getpoint "\nPick a point to ID in World UCS: "))
(if pt
(prompt (strcat "\nWorld X = " (rtos (car (trans pt 1 0)) 2)
" Y = " (rtos (cadr (trans pt 1 0)) 2)
" Z = " (rtos (caddr (trans pt 1 0)) 2)))
)
(princ)
)
ACAD
27.3.2009
14841×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?