AVEVA. PDMS.PML. Sort explorer using txt

Its possible to sort CE members by txt file(C:\array.txt) list, using this script:

!stringPath = ‘C:\array.txt’
!objectFilePath = object FILE(!stringPath)
!lines = !objectFilePath.readFile()
if( !lines.size() eq 0 OR !lines.size() eq 0)then
return
endif
do !line from 2 to !lines.size() – 1
if(!lines[!line] ne ”) then
!realLine = !line – 1
reorder $!lines[$!line] after $!lines[$!realLine]
endif
enddo

Video manual:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s