total cutlength of pipe(totalling bran clle)

 
Parents
  • [COLOR=#0000ff]!bran = !!collectallfor(|BRAN|,||,!!CE)[/COLOR]
    [COLOR=#0000ff]!bransiz = !bran.size()[/COLOR]
    [COLOR=#0000ff]do !j from 1 to !bransiz[/COLOR]
    [COLOR=#0000ff]!cllelen = clle of $!bransiz[$!j][/COLOR]
    [COLOR=#0000ff]!clletotal = !cllelen + !clletotal[/COLOR]
    [COLOR=#0000ff]enddo[/COLOR]
    [COLOR=#0000ff]$p Total pipe cutlength is $!clletotal

    [/COLOR]How to add the clle of branches in a pipe.

    /Thanks in advance
Reply
  • [COLOR=#0000ff]!bran = !!collectallfor(|BRAN|,||,!!CE)[/COLOR]
    [COLOR=#0000ff]!bransiz = !bran.size()[/COLOR]
    [COLOR=#0000ff]do !j from 1 to !bransiz[/COLOR]
    [COLOR=#0000ff]!cllelen = clle of $!bransiz[$!j][/COLOR]
    [COLOR=#0000ff]!clletotal = !cllelen + !clletotal[/COLOR]
    [COLOR=#0000ff]enddo[/COLOR]
    [COLOR=#0000ff]$p Total pipe cutlength is $!clletotal

    [/COLOR]How to add the clle of branches in a pipe.

    /Thanks in advance
Children
No Data