How to implement function "save as" from right click on selected component?

Now, … also saving the definition will not bake the instance’s scaling or rotation into what is saved, as the definition’s entities are untransformed.

If you need the instance’s transformation, then see this other recent topic: