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.

I cannot split a string. HELP

Anonymous
Not applicable
AC9 GDL:

ss = "3 pieces 2x5 beam"
n = SPLIT (ss, "%n pieces %nx%n %s", num, ss1, size1, ss2, size2, name)
IF n = 6 THEN
PRINT num, ss1, size1, ss2, size2, name ! 3 pieces 2 x 5 beam
ELSE
PRINT "ERROR"
ENDIF


i cant understand, why is this simple example always prints ERROR.
I need to scan string parameter for a number of strings, or numeric parts, divided by commas.
1 REPLY 1
rocorona
Booster
For me, it works (a direct Copy-Paste from the forum to the 2D Script).
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
Learn and get certified!