Thank you , both are working great .
Will it be possible with MLINE and POLYLINE ?
Appreciated a lot .
Well, that should be quite simple. For a pline you could go with:
(defun makeplines (lst / )
(command "_.PLINE")
(foreach pt lst
(command "_None" pt)
)
)
I tested your list like this:
(setq pnts '((11 34.614 7.48336 0.0) (11 18.7203 7.48336 0.0) (11 14.9239 12.8179 0.0) (11 7.42747 12.8179 0.0)))
(makeplines (mapcar 'cdr pnts))
Note the "_None" object snap to allow it to work even if you've got running object snaps turned on. IMO it's a better idea than to temporarily set SnapMode, otherwise you need extra error traps and such.
But
... I'd advise going with CAB's idea of creating the line/pline programatically, instead of through a command call. It allows for more options and generally runs faster. How to accomplish that for an MLine might be a bit complex though.