Experimenting with NENTSELP, this is my code:
(DEFUN c:obj ( / )
(SETQ
select (ENTSEL "\nSelect object: ")
ent (CAR select)
hpt (CDR select)
)
(PRINC "\nent: ")(PRINC ent)
(PMAKE)
(SETQ ent2 (CAR(NENTSELP hpt)))
(PRINC "\nent2: ")(PRINC ent2)
)
(defun pmake () (command "PEDIT" ent "YES" "" "")(princ))
But I only ever get an error message:
error: bad argument type: 2D/3D point: ((142.318 200.826 0.0))
Any ideas?
DJE