It seems it won't work if use PIPE or BRAN as variables
var !collection COLLECT ALL (PIPE) for CE or var !collection COLLECT ALL (BRAN) for CE
You have to make sure that your Collection is a Shared collection, then you navigate to it in the Model Explorer and when the collection itself is a CE, you run the macro Rhel gave you by copying this pml code and pasting AS MACRO to your command line. All your Panes and Gensecs will select if they are part of your Shared collection.
[HTML]
var !collection COLLECT ALL (PANE GENSEC) for CE
-- Set up a selection object
!selection = object SELECTION()
-- Loop through all from !collection
do !collRefe values !collection
-- Add Item to Selection
!selection.add(!collRefe.dbref())
enddo
-- Update Selection
!selection.setCurrent()
[/HTML]