Ask for lisp for labelling coordinates in rotated view

Ask for lisp for labelling coordinates in rotated view

Anonymous
Not applicable
840 Views
6 Replies
Message 1 of 7

Ask for lisp for labelling coordinates in rotated view

Anonymous
Not applicable

Capture.PNG

0 Likes
Accepted solutions (1)
841 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Please help! How to label the world coordinates in rotated view plan with flat text style ?

0 Likes
Message 3 of 7

pendean
Community Legend
Community Legend
Set PLAN to "current ucs" then add your "flat labels" is one way to do it. Try it.
0 Likes
Message 4 of 7

Anonymous
Not applicable
Accepted solution

I did but the labelled coordinates were not world coordinates, I need to edit manually. Is there other lisp to fix it ?

0 Likes
Message 5 of 7

hmsilva
Mentor
Mentor

@Anonymous wrote:

Capture.PNG


This?

(defun c:demo ( / pt pt1 txtx txty txtz)
  (if (and (setq pt (getpoint "\nSpecify a point to labell: "))
	   (setq pt1 (getpoint pt "\nSpecify text starting point: "))
      )
    (progn
      (setq pt	 (trans pt 1 0)
	    pt1  (trans pt1 1 0)
	    txtx (strcat "E=" (rtos (car pt) 2 3) "\n")
	    txty (strcat "N=" (rtos (cadr pt) 2 3) "\n")
	    txtz (strcat "L=" (rtos (caddr pt) 2 3) "\n")
      )
      (command "_.ucs" "_v"
	       "leader" "_non" (trans pt 0 1) "_non" (trans pt1 0 1) "Annotation" txtx txty txtz ""
	       "_.ucs""_p")
    )
  )
  (princ)
)

Hope this helps,
Henrique

EESignature

Message 6 of 7

Anonymous
Not applicable

Wow great! It works, really really thanks!! 

0 Likes
Message 7 of 7

hmsilva
Mentor
Mentor

@Anonymous wrote:

Wow great! It works, really really thanks!! 


You're welcome, @Anonymous 
Glad I could help

Henrique

EESignature