I am trying to offset a 2D Polyline and I can get it to offset however if I try to asign the new line from the offset to an Object variable I get the the error message "Object variable or With block variable not set". I have declared my object variable as an AcadObject and also tried AcadPolyline and just Object but get the same error. My code is as follows: lLin = xln.Offset(-dist) Where -dist is taken from a text box on a form. Any suggestions. Thanks Gerry