You would need to manipulate the list a tidbit to do what you want.
Lets say you you want to replace the second group 10 in a list, you could use something like this
entlist is your lwpolyline list and pnt is your new point
(entmod
(subst
(cons 10 pnt) ;<-- your new point
(assoc 10
(cdr
(member
(assoc 10 entlist)
entlist
)
)
)
entlist
)
)
Now this of course will only change the second group 10, you can make the lisp loop through the entire list of DXF 10 groups by using something like this
"item" is the number of the item you want to retrieve
(setq newlist entlist x 0)
(while (< x item)
(setq newlist
(cdr
(member
(assoc 10 newlist)
newlist
)
)
)
(setq x (1+ x))
)
None of this has been tested and it can also be done more efficiently in other manners, but I wanted you to get the understanding of how to accomplish it first.