Angle support python error
I want to make a support by connecting two anglesupport as shown in the picture.
The corresponding py file is this.
import aqa.math
import math
from varmain.divsub.cste_l import *
from varmain.primitiv import *
from varmain.var_basic import *
from varmain.custom import *
@Anonymous(Group="Support", TooltipShort="CSGE005", TooltipLong="CSGE005", LengthUnit="mm", Ports="1")
@group("MainDimensions")
@param(D=LENGTH, TooltipLong="Pipe Diameter")
@param(L=LENGTH, TooltipLong="Height")
@param(WT=LENGTH, TooltipLong="Steelshape(T)width")
@param(HT=LENGTH, TooltipLong="Steelshape(T)height")
@param(TT=LENGTH, TooltipLong="Steelshape(T)thickness")
@param(WL=LENGTH0, TooltipLong="Steelshape(L)width")
@param(HL=LENGTH0, TooltipLong="Steelshape(L)height")
@param(TL=LENGTH, TooltipLong="Steelshape(L)thickness")
@param(LL=LENGTH, TooltipLong="Steelshape(L)length")
def CSGE005(s, D=116.0, L=400.0, WT=100.0, HT=0.0, TT=8.0, WL=0.0, HL=0.0, TL=0.0, LL=200.0,ID='CSGE005', **kw):
if TL <= 0.0:
TL = TT
else:
MD = TL
if HT <= 0.0:
HT = WT
if WL <= 0.0:
WL = HT + TL
if HL <= 0.0:
HL = WL
R = D / 2.0
LT = L - R
o0 = CSTE_L(s, W=WL, H=HL, T=TL, L=LL).rotateX(-90.0).rotateZ(180).translate((TL / 2.0, LL / 2.0, -(R + HL / 2.0)))
o1 = CSTE_L(s, W=WT, H=HT, T=TT, L=LT).rotateY(180.0).rotateZ(180).translate((0.0, 0.0, -R))
o0.uniteWith(o1)
o1.erase()
s.setPoint((0, 0, 0), (-1, 0, 0))
s.setLinearDimension('L', (0, 0, 0), (0, 0, -L))
I've tried TESTACPSCRIPT . But it doesn't run.
Please help.