@Vinayv4v wrote:
....
You have got yourself a 3d polyline. The offset command cannot be used to offset 3d polylines. ....
More than that, the object [whether it's a 3D Polyline or a Spline] actually does not lie all in a common plane. A 3D Polyline can be drawn all in a flat plane, and Offset can't work with flat ones either, but in that case you just get an ordinary can't-Offset-that-object message at the command line. That pop-up alert-style message only occurs [for me, here in Acad2016] when the object is actually not planar.
That means that if you do something to make it Offsettable, be aware that it will change it geometrically in some way in the process [i.e. move some vertex or vertices]. If you don't want that, you could flatten a copy of it into a 2D Polyline, and Offset that, assuming that will serve your purposes, but of course the result won't be the same [3D] distance from the original everywhere, as it would [in 2D] with a flat one.
Kent Cooper, AIA