2022-05-24 02:38 PM
Hello,
I have set a subroutine with a custom 3d object which it shows as it should in 3D, the problem starts when I use a For_To_Next operation, the 3D object disappears totally.
If I use a more simple object the For_To_next works.
Calling the subroutine alone it works:
When For_To_Next is enable, nothing shows:
If I use exactly the same For_To_Next with a simple block object, it works:
I'm clueless about what is happening.
Juan
2022-05-24 03:21 PM
Try to use quotation marks for the subroutine id ("400"). This is just a wild guess.
| Archicad 4.55 - 27
| HP Z840 | 2× E5-2643 v4 | 64 GB RAM | Quadro M5000 | Windows 10 Pro x64
| HP Z4 G4 | W-2245 | 64 GB RAM | RTX A4000 | Windows 11
2022-05-24 04:48 PM
The answer is probably in the subroutine itself.
What happens, if you put the block in a routine?.... Divide and Conquer!
2022-05-24 06:36 PM
If you post the whole script it would be easy to know what's happening.
But the first comment is likely the solution.
2022-05-24 07:13 PM
`gosub 400` (which is totally valid!) and `gosub "400"` are different things, tho.
And what makes this unlikely is that the single `gosub 400` outside the loop works.
As mentioned, without the whole script everybody is blind.
2022-05-25 05:13 AM
I just tried by putting the BLOCK in a subroutine and that worked fine.
So I would suspect something in the 400 subroutine.
Did you forget the RETURN maybe?
Barry.
2022-05-25 07:11 AM
I will strip down my script and I will share it.
2022-05-25 07:11 AM
Thanks, I double checked and there is a return statment.
2022-05-25 07:12 AM
Will do, didn't think about it.