vla-addLightweightPolyline. Not only is that a lengthy term to write, but there are several functions whose names begin with vla-add that you will use to create entities. Rather than consulting a manual to look up the function name every time you create a program, let VLISP help.
The code that adds a lightweight polyline to the drawing calls a function namedTo get help with using a function
(vla-add
VLISP displays the Symbol Service dialog box for the selected function.