Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I kindly ask for help. Programming is not my forte, especially the syntax I will refer to.
I am preparing a simple LISP for use in Autodesk software. Its main tasks are to get the Z value indicated by clicking the point and insert the point and the label with the height value as text.
Target appearance:
My problem is not knowing how to correct this rather trivial code that I am enclosing, to:
1. The text was inserted in the height of 0.3m (no need to define by the user in the program).
2. The position of the text (Position Z) corresponds to the Z value of the indicated point.
Code:
(defun c:lh (/ p x y ptcoord textloc) (while (setq p (getpoint "\nPick Point: ")) (command "_POINT" p) (setq z (rtos (caddr p))) (setq ptcoord (strcat z)) (setq textloc (getpoint "\nPick Label Location: ")) (command "_TEXT" textloc p "" ptcoord "") ) )
Thanks in advance for any tips! 🙂
Solved! Go to Solution.