cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.
SOLVED!

Archicad GDL Maths Functions

GDL Enthusiast
Enthusiast

Hi, 

 

I can't seem to get some of the math functions to work e.g.

x1 = atan (1)

x2 = sqrt (16)

x3 = power (5,2)

The error is unnecessary token(s) after end of command. The syntax comes from here:

https://helpcenter.graphisoft.com/user-guide/128510/

 

Other functions seem to work fine, I have no idea why, e.g.

y1 = tan(0.785)

y2 = sin(0.5)

y3 = cos(0.5)

 

I suspect I am I missing something obvious... but I would welcome any help!

 

Many thanks, 

Matt

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi Matt.

The link shown above provides the reference for Expressions applied to archicad properties and are not the syntaxing functions for GDL.

Here's the GDL reference for common GDL functions: Functions | GRAPHISOFT GDL Center

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1

View solution in original post

3 REPLIES 3
Solution

Hi Matt.

The link shown above provides the reference for Expressions applied to archicad properties and are not the syntaxing functions for GDL.

Here's the GDL reference for common GDL functions: Functions | GRAPHISOFT GDL Center

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1
GDL Enthusiast
Enthusiast

Super, thank you so much Toper, it works now!!!

lopezfigueroa
Enthusiast

ATAN= Use  atn()
SQRT= Use sqr()
Power= use ^  (alt+94)