superunknown Posted April 4, 2007 Posted April 4, 2007 Is there any way to go round an autocad site plan using the ID command and have the coordinates registered automatically to a table in Autocad 2004 Quote
CarlB Posted April 4, 2007 Posted April 4, 2007 No, not without an add-on like LDD or Civil 3D, or a custom Lisp or VBA routine. Quote
Guest Alan Cullen Posted April 4, 2007 Posted April 4, 2007 PM me your email address.....I'll send you a lisp routine that will do what you're after. Quote
ASMI Posted April 5, 2007 Posted April 5, 2007 Try this routine. (defun c:ptt(/ curPt txtObj vlaTxt) (vl-load-com) (setq curPt T) (while curPt (if (and (setq curPt (getpoint "\nPick point > ")) (setq txtObj (nentsel "\nSelect Text, MText or Attribute > ")) ); end and (progn (if (member (vla-get-ObjectName (setq vlaTxt(vlax-ename->vla-object(car txtObj)))) '("AcDbText" "AcDbMText" "AcDbAttribute")) (progn (if (vl-catch-all-error-p (vl-catch-all-apply 'vla-put-TextString (list vlaTxt (strcat(rtos(car curPt)) ","(rtos(cadr curPt)))))) (princ "\nText on locked layer! ") ); end if ); end progn (princ "\nIt isn't Text, MText or Attribute! ") ); end if ); end progn ); end if ); end while (princ) ); end of c:ptt Quote
SLW210 Posted March 20, 2013 Posted March 20, 2013 Looks like PTT. defun c:[b][color=red]ptt[/color][/b] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.