License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

GDL
About building parametric objects with GDL.

Profiles in GDL: How can I get X corresponding to the maximum Y?

Durval
Advocate

From this thread (why is it closed to new replies?) – 'Profiles in GDL' – I learnt that we can easily REQUEST the coordinates of profiles' bounding boxes: 'xmin', 'ymin', 'xmax' and 'ymax'.

The question is: how can I get the 'x' corresponding to the point where 'y' has its greatest value, i.e., what's the x of ymax? 

 

Operating system used: Mac Apple Silicon Sonoma

--- www.dtabach.com.br ---

AC 27/28 BRA – MacBook Pro Apple M2 16GB RAM Mac OS Sonoma
2 REPLIES 2
Barry Kelly
Moderator

That thread is nearly 8 years old, and old inactive threads get locked automatically.

 

The min/max is only reporting the min/max of the overall profile in relation to the origin.

It is not the actual co-ordinates for the points that are at the min/max.

 

I am not aware of any way to get the actual co-ordinates for the profile.

 

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
Lingwisyer
Guru

Is it possible to use the Parameter Buffer with the MIN and MAX operations? Though how to check the position in the buffer of the return to get the corrisponding other coordinate is questionable...

 

ps. Could you insert the Parameter Buffer values into an array, then cycle through the values i+2 till it matches, at which point your other coordinate would be i+1?

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Setup info provided by author