Unfortunately in one drawing I've recieved the points are lebelled in metres, but drawn in mm.
It would make my life much easier if the lsp below could be amended to take this into account. So rather than give co-ord of 949846.00,2474211.00, I would like it read as 949.846,2474.211.
(defun c:ordi(/ fPt oldEcho *error*) (defun *error*(msg) (setvar "CMDECHO" oldEcho) (princ) ); end of *error* (setq oldEcho(getvar "CMDECHO")) (setvar "CMDECHO" 0) (while t (if (setq fPt(getpoint "\nSpecify point or Esc to Quit > ")) (progn (command "_.dimordinate" fPt "_t" (strcat "X=" (rtos(car fPt)2(getvar "DIMDEC")) "\\X" "Y=" (rtos(cadr fPt)2(getvar "DIMDEC")) ); end strcat pause ); end command ); end progn ); end if ); end while (setvar "CMDECHO" oldEcho) (princ) ); end of c:ordi
It is now a much more elegant solution to labelling coordinates using the dimensioning facilities of AutoCAD. I must add on a header where I got it from
i cant make this work. i appload the lsp then what Write ordi to command or this overwriting DIMORDINATE command. Using Autocad 2008. And new to lisps....
There is similar lsp at different topic. i can make it work by typing 31 thanks...