How to hard the transform for stl?

[1, 0, 0, 2],
[0, 1, 0, 2],
[0, 0, 1, 2],
[0, 0, 0, 0.01]

the “0.01” seems not work in slicer and cannot save as well as.

You must not change the last row of the transform (it would create transforms that violate assumptions in VTK and ITK filters). There is a ticket for making the last row read-only but we have not come around to implement it yet.

What would you like to achieve by modifying the last row?

I want to scale the group stl file, but never change the relationship location and then display it in the 3d slicer

Scaling transform is:

ScaleX 0 0 0
0 ScaleY 0 0
0 0 ScaleZ 0
0 0 0      1