I have a routine that traces "contiguous" arcs representing electrical circuits. I want to gather data along that "path" and save it as extended data in the home run, the arrow head for a particular circuit.
(setq store (list (cons 0 "INSERT")
(assoc 8 ent)
(cons 100 "AcDbBlockReference")
(cons 2 "ar_head")
(cons 10 head)
(cons 50 ang)
'((-3 ("rak"
(1000 . "Kenny is handsome")
(1000 . "And intelligent")
)
)
)
)
)
(entmake store)
without the extended data, it works as expected. you may recognize the source I am using, afralisp. but the examples I have found take an existing entity and add extended data to it. I was hoping to create, entmake, the original entity with the extended data in the first place.
is this possible?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
I added this, and it works, but I would still like a more straightforward method.
(entmake store)
(entmod (append (entget (entlast))
'((-3
("rak"
(1000 . "Kenny is handsome")
(1000 . "And intelligent")
)
)
)
)
)