BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Strange conversion number

Erich
Contributor
Folks,

Can anyone explain to me why I am getting the strange conversion number (highlighted) in my GDL to get a part to display correctly?

FOR i=0 TO thrdlen*tpi*39.4-1
POLY2_B 7, 3, 6, 91,
shnk/2-H, 0, 1,
-shnk/2+H, -yht, 1,
-shnk/2, -yht-P/2, 1,
-shnk/2+H, -yht-P, 1,
shnk/2-H, -P, 1,
shnk/2, -P/2, 1,
shnk/2-H, 0, 1
ADD2 0, -P
NEXT i

I arrived at this number by measuring the distance the loops was to cover versus the distance it actually did without the conversion. I would understand if it were 25.4 or some similar conversion number, but 39.4 doesn't match anything I would expect. BTW there are no MUL statements or anything similar in the coding.

Can anyone enlighten me?
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
4 REPLIES 4
Erika Epstein
Booster
39.4 sounds like the inch equivalent of a meter.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
vistasp
Advisor
Hi Erich,

Erika is right. And if accuracy is important, you could use 39.37 (divide 100cm by 2.54 and you have it.)
= v i s t a s p =
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC 9-27 INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |
Erich
Contributor
Thanks, that makes perfect sense and I should have seen it.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Laszlo Nagy
Community Admin
Community Admin
The probable reason for that number is that GDL scripts are always in meters, even if your Project is set to Imperial units. So I guess in some cases numbers need to be converted from meters to inches.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Learn and get certified!