Problems with modeling a parametric structure

Hello,

I’ve lost track of things in Virtual Components and I’m stuck.

Here’s what I’m trying to do:

I want to parameterize a construct consisting of four elements so that I can adjust its size.

The idea was this:

I divide the structure into four squares (Q1, Q2, Q3, Q4) and treat them accordingly.

Q1 should always remain fixed in position. Depending on the properties “CellLength” and “CellWidth,” the structure should “grow” accordingly. I thought transforming and scaling would get me there. Unfortunately, I lack a fundamental understanding of this. If I calculate the transformations and, for example, need the following expression Sx(2) for Q2, the object scales correctly, but it also changes its position? What rules govern this? I have no idea how to handle this. Does it have something to do with my structure in the component graph or with the position relative to the origin?

A tip on this matter would make me very happy.

The goal is to understand the whole thing and then apply it to more complex structures (a parameterized machine)…

ParametricTest.vcmx (25.8 KB)

Best regards,
Stephan

Hey,

Scaling also scales the distance as you have noted, so if you have an offset of 100mm and object with the height of 500 mm and scale that by a magnitude of 2, it will have offset of 200 mm and height of 1000 mm. Try to move the origin of the transformation feature and and then scale to experiment.

br,
lefa

Thank you for the feedback. Precisely positioning the origins helped me here.