GDL
About building parametric objects with GDL.

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

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
AC25 5010 / AC26 4019 on window 11
1 ACCEPTED SOLUTION
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 26
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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.

AC25 5010 / AC26 4019 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 26
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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. ^^

AC25 5010 / AC26 4019 on window 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!