Matthew wrote: Take a look at the GDL Reference under the CALL function and specifically the RETURNED PARAMETERS keyword (pgs 222-223). You can return whatever you want to the calling macro.
I hadn't noticed that one.
After a quick look at it there appears to be one small problem though.
It does not appear to be live.
For example object A calls object B which does a calculation based on the rotation angle of object A.
If object A rotation = 0 then orient = "E"
If object A rotation = 90 then orient = "N"
If object A rotation = 180 then orient = "W"
If object A rotation = 270 then orient = "S"
The RETURNED_PARAMETER orient is set in object A which is good.
However if you rotate object A on screen (2D or 3D) the parameter does not alter even after a rebuild and regenerate.
You physically have to select the object (inividually if there is more than one) and open the object settings before the new orientaion is re-set.
I have zipped up a couple of very simple objects to show what I mean.
Load both in your library and place object A and rotate it to see what I mean.
And this is pretty much exactly the issue I am having.
All my doors and windows are calling a macro that sorts out the orientation of the frame.
I was sending this to a GLOB_USER variable but that seems not to work in 12 which is why I am looking for an alternate solution.
The RETURNED_PARAMETER is close to what I need but there would be problems if people simply rotate walls with frames in.
I will keep searching for a solution.
Thanks for your help.
One of the forum moderators. Versions 6.5 to 25 Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10 Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10