I've been playing with xdata but I am having trouble getting it to do what I want:
add a 2d point as xdata to a line.
Here is a snippet of what I've tried, but fails:
(setq lastent (entget (entlast)))
(regapp "NEWDATA")
(setq exdata
'((-3 ("NEWDATA"
(1010 . p1) ;;original is (1000 . "This is a new thing!") ))) ) (setq newent (append lastent exdata))
(entmod newent)
One issue is the ' is keeping p1 from being evaluated.
Hope someone sees a simple error I can fix. This lisp is only very slightly modified from autocad's reference.
Later I plan to add a reactor that will modify the line based on this point in xdata, but that is a whole nother issue I will cross when I get there
Thanks a bunch, kemp
add a 2d point as xdata to a line.
Here is a snippet of what I've tried, but fails:
(setq lastent (entget (entlast)))
(regapp "NEWDATA")
(setq exdata
'((-3 ("NEWDATA"
(1010 . p1) ;;original is (1000 . "This is a new thing!") ))) ) (setq newent (append lastent exdata))
(entmod newent)
One issue is the ' is keeping p1 from being evaluated.
Hope someone sees a simple error I can fix. This lisp is only very slightly modified from autocad's reference.
Later I plan to add a reactor that will modify the line based on this point in xdata, but that is a whole nother issue I will cross when I get there
Thanks a bunch, kemp