GDL
About building parametric objects with GDL.
SOLVED!

Couldn't find "10:" in gosub 10 in cavityclosure. What is it?

LeeJaeYoung
Virtuoso

Couldn't find "10:" in gosub 10 in cavityclosure. What is it?

 

if bCompositeWall then
for i=1 to WALL_SKINS_NUMBER
idx = i: gosub 10 ! Get proper index

cumRefThk = cumRefThk + WALL_SKINS_PARAMS[idx][SKIN_THICKNESS]
skinCummThkRef[idx] = cumRefThk

idx = WALL_SKINS_NUMBER + 1 - idx ! reorder
cumOppThk = cumOppThk + WALL_SKINS_PARAMS[idx][SKIN_THICKNESS]
skinCummThkOpp[idx] = cumOppThk
next i
endif
AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Peter Baksa
Graphisoft
Graphisoft

It is in the master script 🙂

GDL can jump to the master script. Technically it's possible the other way too, but then you need a subroutine in each script and check script will still give a warning for the master script.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

View solution in original post

5 REPLIES 5
Barry Kelly
Moderator

If you mean you personally can't find it then, somewhere in the script will be a sub-routine labelled 10.

It will usually be after the END command in the script.

It will be something like...

 

10:

......commands

......here

RETURN

 

So search for 10: and you should find it.

 

But I am sure you would know that as you have be playing around with GDL for a while now.

 

However, if that is an error message you are getting, then that is because the 10 subroutine is not there at all, and the script can't find it when it is run.

 

 

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

in cavityclosure
If you search with ctrl+f   you will find 10 too many.

So, if you search for 10:, only 4910: will be searched.
If you search for 10 :, 10 : , 10 :, it doesn't come out.

AC27 on window 11

If you have searched and it is not there, then it is simply not there.

That would be why you are getting an error message to say it is not there.

Probably bad coding in the object.

 

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
Solution
Peter Baksa
Graphisoft
Graphisoft

It is in the master script 🙂

GDL can jump to the master script. Technically it's possible the other way too, but then you need a subroutine in each script and check script will still give a warning for the master script.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

thank you so much. ^^

AC27 on window 11