Hi guru
As the title topic, I need a small macro to calculate the total dia inch of tee for zone. So can any one help me?
the total dia inch for one tee equals 2*p1bore+p3bore
Hi guru
As the title topic, I need a small macro to calculate the total dia inch of tee for zone. So can any one help me?
the total dia inch for one tee equals 2*p1bore+p3bore
Is this what you mean?
zone
var !tees coll all tee for zone
!total2 = 0
do !tee values !tees
$!tee
!ref = ref
!p1bore = p1bore
!p3bore = p3bore
!total = ((2 * !p1bore.real()) + !p3bore.real())
!total2 = !total + !total2
$p $!ref $!total
enddo
$p $!total2