# -*- coding: utf-8 -*-
from varmain.primitiv import *
from varmain.custom import *
@activate(Group="Coupling, Sleeve", FirstPortEndtypes="BV, CT", Ports="2", TooltipShort="", LengthUnit="mm")
@group("MainDimensions")
@param(A=LENGTH, TooltipLong="")
@param(B=LENGTH, TooltipLong="")
@param(L=LENGTH, TooltipLong="")
def NLCTCOUP_CSZT_A(s, A=100.0, B=50.0, L=2000.0, **kw):
if B<=0.0:
paB=A/2.0
else:
paB=B
s01=BOX(s, H=L, L=A, W=paB)
s.setPoint((-L/2.0, 0.0, 0.0), (-1.0, 0.0, 0.0))
s.setPoint((L/2.0, 0.0, 0.0), (1.0, 0.0, 0.0))
|