Message 1 of 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I entsel the block I get the DESC2 value, but when it runs with the ssget, the dump shows it missing. What am I doing wrong?
(defun c:test (/ pointdata ddl i e pointxy)
(setq pointdata (ssget "_X" '((0 . "INSERT")(8 . "DFORMSHOTS"))))
(PRINC POINTDATA)
(repeat (setq ii (sslength pointdata))
(setq e (ssname pointdata (setq i (1- i))))
(PRINC e)
(PRINC (dumpallproperties e))
(setq ddl (cons (getpropertyvalue e "DESC2") ddl))
(setq pointxy (cons (list (getpropertyvalue e "Position/X")
(getpropertyvalue e "Position/Y")) pointxy))
(cond
((= (strcase ddl) "28") (command "_insert" "r" pointxy "28" "" "" ""))
))
)
Solved! Go to Solution.