• [url=https://www.avevaworldforum.com/member.php?31991-AYadegar]AYadegar[/url] has reported a post.

    Reason:
    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

    Post: [url=https://www.avevaworldforum.com/showthread.php?21892&p=118660#post118660]How to select collection?[/url]
    Forum: AVEVA Everything3D
    Assigned Moderators: N/A

    Posted by: [url=https://www.avevaworldforum.com/member.php?38457-annabauman]annabauman[/url]
    Original Content:
    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]