AutoCAD doesn't have a command to do that. Fortunately, we can create one with ObjectARX API. The most complex in the task is to handle splines properly as there are various of splines in AutoCAD, ...