Message 1 of 17
get altitude between nearest pikets
Not applicable
01-06-2015
12:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello again i am here with another question... how to automatically calculate PT (selected point) altitude triangle form between the nearest "pikets" in the database ?
this code using to put pikets in to the database (below). So using this code need calculate altitude. How to do this ?
(vl-load-com)
(defun c:blk-piketas ( / ent i lst ss)
(if (setq ss (ssget "_X" '((0 . "INSERT") (2 . "Piketas"))))
(progn
(repeat (setq i (sslength ss))
(setq ent (entget (ssname ss (setq i (1- i))))
lst (cons (cdr (assoc 5 ent)) lst)
)
)
(vlax-ldata-put "ManoDirektorija" "Piketas" lst)
(prompt (strcat "\n " (itoa (sslength ss)) " Piketas idetas i \"ManoDirektorija\" direktorija..."))
)
(prompt (strcat "\n \"Piketas\" nerastas..."))
)
(princ)
)