Try this, which [in minimal testing] moves the end-most vertices of the results of the Offsets to the endmost vertices of the source Polyline. It assumes a lightweight Polyline, not a "heavy" 2D Polyline.
(vl-load-com)
(defun C:O3C ; = Offset 3 times & Connect ends
(/ plsel pl1obj pl1Coords pl1CoordsRev pl1Start pl1End)
(setq
plsel (entsel "\nPolyline to Offset 3 times and Connect: ")
pl1obj (vlax-ename->vla-object (car plsel))
pl1Coords (vlax-get pl1obj 'coordinates)
pl1CoordsRev (reverse pl1coords)
pl1Start (list (car pl1Coords) (cadr pl1Coords))
pl1End (list (cadr pl1CoordsRev) (car pl1CoordsRev))
); setq
(command
"_.offset" 0.025 plsel (setq p1 (getpoint "\nPoint on side to Offset, far enough away for all 3: ")) ""
"_.chprop" "_last" "" "_layer" "0_SANAL_HAT" ""
); command
(setq
pl2obj (vlax-ename->vla-object (entlast))
pl2Coords (vlax-get pl2obj 'coordinates)
); setq
(vlax-put pl2obj 'coordinates
(append pl1Start (cddr (reverse (cddr (reverse pl2Coords)))) pl1End)
); ...put
(command
"_.offset" 0.05 plsel p1 ""
"_.chprop" "_last" "" "_layer" "0_SANAL_HAT" ""
); command
(setq
pl2obj (vlax-ename->vla-object (entlast)); re-use variables
pl2Coords (vlax-get pl2obj 'coordinates)
); setq
(vlax-put pl2obj 'coordinates
(append pl1Start (cddr (reverse (cddr (reverse pl2Coords)))) pl1End)
); ...put
(command
"_.offset" 0.075 plsel p1 ""
"_.chprop" "_last" "" "_layer" "0_SANAL_HAT" ""
); command
(setq
pl2obj (vlax-ename->vla-object (entlast))
pl2Coords (vlax-get pl2obj 'coordinates)
); setq
(vlax-put pl2obj 'coordinates
(append pl1Start (cddr (reverse (cddr (reverse pl2Coords)))) pl1End)
); ...put
(princ)
); defun
For certain configurations, it may give results different from what you intend [yellow is the source Polyline, green the Offset ones]:

Here, on the left, with an arc segment at an end, the end arc segments in the newer ones keep the bulge factor, not the tangency from the adjacent line segments. And on the right, the dashed red is the initial result of the third Offset, and since it loses a vertex because of the configuration of the original at that Offset distance, the adjusted left-end green segment of the lowest one is in place of two segments of the others.
Kent Cooper, AIA