I have defined a set of values on the parameters tab and to make it easier to use subroutines in the 3D I have a variable in Master to do it, the problem is when I test it, the call is not made and I get and error in the 3D script saying that there is a uninitialized variable.
The exact problem is in the 3D script, if I call the subroutine +dort which is defined in the Master, the macro is not called, but the other calls are working.
If I delete the +dort then the macro is called if I set gosub 202
Here is just an extract of the code:
VALUES "ls" "Empty", "Flush", "1-panel"
IF opa3>90 THEN opa3=90
IF opa3<0 THEN opa3=0
IF ls="Empty" THEN dort=0
IF ls="Flush" THEN dort=1
IF ls="1-Panel" THEN dort=2
!!! EMPTY WHOLE
CALL door01_macro PARAMETERS lmat1=lmat1, lmat2=lmat2, lw=lw, lh=lh, lt=lt