AVEVA Community
Site
Search
User
Site
Search
User
AVEVA World
PDMS/E3D Forum
Macros & Tools
total pipe length
Forums
Resources
Mentions
Sub-Groups
Tags
More
Cancel
New
Replies
12 replies
Subscribers
14 subscribers
Views
261 views
Users
0 members are here
Options
Share
More
Cancel
Related
total pipe length
Pravin Parvekar
over 5 years ago
Parents
Pravin Parvekar
over 5 years ago
var !pipes coll all pipe where matchwild(NAME of site,'*PIPE-JLE-ROS*') eq TRUE
--!pipes = !!collectallfor(|PIPE|,||,!!ce)
!output = array()
do !pipe values !pipes
!len = 0
!branches = !!collectallfor(|BRAN|,||,!pipes)
q var !branches
return
do !bran values !branches
!len = !len + !bran.cllen
enddo
!output.append(!pipe.name & | Length: | & !len )
enddo
q var !output
i want this as a report in excel
[COLOR="silver"]- - - Updated - - -[/COLOR]
[COLOR=#333333]q var !branches[/COLOR]
[COLOR=#333333]return
this is to be deleted a just doing trials on it [/COLOR]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Pravin Parvekar
over 5 years ago
var !pipes coll all pipe where matchwild(NAME of site,'*PIPE-JLE-ROS*') eq TRUE
--!pipes = !!collectallfor(|PIPE|,||,!!ce)
!output = array()
do !pipe values !pipes
!len = 0
!branches = !!collectallfor(|BRAN|,||,!pipes)
q var !branches
return
do !bran values !branches
!len = !len + !bran.cllen
enddo
!output.append(!pipe.name & | Length: | & !len )
enddo
q var !output
i want this as a report in excel
[COLOR="silver"]- - - Updated - - -[/COLOR]
[COLOR=#333333]q var !branches[/COLOR]
[COLOR=#333333]return
this is to be deleted a just doing trials on it [/COLOR]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data