Shape painter as NewObject

Is it possible to save the line you draw using shape painter as NewObject?

No, drawn shapes cannot be transformed to objects, but it is possible to save them.
This topic should be interesting for you: