Hello everyone,
I want to scale a solid with origin as its center, but I can't find any way to do it.
I try this: (have a Solid named solid)
Transform transform = Transform.CreateTranslation(new XYZ(0, 0, 0)).ScaleBasis(1.1);
Solid sclSolid = SolidUtils.CreateTransformed(solid, transform);
But it's scaled from the basis (0,0,0).
Please help, thank you!
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
You can achieve what you need by concatenating several transforms, e.g., to translate the solid from the origin to its centre, then to scale, then to translate it back again.
Cheers,
Jeremy
Can't find what you're looking for? Ask the community or share your knowledge.