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
Venkata Rao Peta
over 5 years ago
.csv it will generate not .xls or .xlsx
if you want excel file use grid function, don't know you are using E3D or PDMS.
!pipes = !!collectallfor(|PIPE|,||,!!ce)
!output = array()
do !pipe values !pipes
!len = 0
!branches = !!collectallfor(|BRAN|,||,!pipe)
do !bran values !branches
!len = !len + !bran.cllen
enddo
!output.append(!pipe.name & | Length: | & !len )
enddo
!file = object file(|%PDMSUSER%\length.csv|)
!file.writefile(|OVERWRITE|,!output)
!file.close()
syscom 'start excel.exe $!file&'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Venkata Rao Peta
over 5 years ago
.csv it will generate not .xls or .xlsx
if you want excel file use grid function, don't know you are using E3D or PDMS.
!pipes = !!collectallfor(|PIPE|,||,!!ce)
!output = array()
do !pipe values !pipes
!len = 0
!branches = !!collectallfor(|BRAN|,||,!pipe)
do !bran values !branches
!len = !len + !bran.cllen
enddo
!output.append(!pipe.name & | Length: | & !len )
enddo
!file = object file(|%PDMSUSER%\length.csv|)
!file.writefile(|OVERWRITE|,!output)
!file.close()
syscom 'start excel.exe $!file&'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data