runxel wrote:
That concludes why I really need to know the bounding box of a called macro, otherwise I don't know where to place the next object.
I think I get what you are after.
Just as we can CALL an object and send a parameter a new value (CALL object PARAMETERS A=value),
You need to get a returned parameter value but assign it to another parameter in the parent object rather than the original parameter, so you need something like ... CALL object RETURNED parameter_x = A
You don't want the returned value of A to affect the A parameter in your calling object.
And as you are not the user necessarily creating the object being called, you have no control to add a parameter to collect the value you want.
Is that the problem you are facing?
What if in the parent object just before the CALL you save the parent's A value.
A_original = A
Then CALL the object and RETURN A
This will reset the A in the parent object.
Now you can save that value as a new parameter.
new_parameter = A
Then reset the A back to the original value.
A = A_original
PARAMETERS A = A
You should have the 'new_parameter' value that you can use in your calculations.
I think this should work, but I haven't tested.
There may be a better way.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11