the above code should be
if the Obj entity hasn't came out of a selection set the line would beCode:(setq ipt (cdr(assoc 10 (entget (Obj))))) (command "-insert" "KEY_MG_RED" ipt 1 1 0)
Hope that helpsCode:(setq ipt (cdr(assoc 10 (entget(car (Obj)))))) (command "-insert" "KEY_MG_RED" ipt 1 1 0)




Reply With Quote

Bookmarks