Thanks kerry..."clone" as in "copy"? Does this work with any entity in autocad?
Alien, my understanding of the purpose of clone/deepclone is to create a copy of an object. Clone would only include simple properties that are doubles, ints, strings, etc. Deepclone would include the object properties that are also objects (vertices, xData, etc).
Polyline thePoly = myPolyline;
Polyline newPoly = myPolyline.deepclone();
thePoly is just a reference to myPolyline, any changes you make to thePoly will effect myPolyline
newPoly is a new item, you can change and manipulate newpoly and not effect myPolyline. I've not used either of these methods, but I'd imagine you'd need to add the newPoly to modelspace to actually put it in the drawing.