Plex 2E

  • 1.  Automatically log in to model and extract libraries

    Posted Mar 19, 2015 04:19 AM

    Is it possible to automate the following procedure in CA Plex? I would like to achieve the following things:

    1. Open Plex
    2. Open a local model
    3. Log in to group model (input user name and password automatically)
    4. Extract selected libraries
    5. (Open object browser)

     

    I just wondered if it would possible to achieve this by launching CA Plex with some command line parameters, or make a Plex macro or some kind of script etc. Is that currently possible? My idea is that I could automate extracting changes to model libraries when I start my work day.



  • 2.  Re: Automatically log in to model and extract libraries

    Posted Mar 19, 2015 05:28 AM

    "Whenever there is a hard job to be done I assign it to a lazy man; he is sure to find an easy way of doing it." Walter Percy Chrysler (April 2, 1875 – August 18, 1940)



  • 3.  Re: Automatically log in to model and extract libraries
    Best Answer

    Posted Mar 19, 2015 06:11 AM

    Is it possible = YES

     

    I know CM First does all or most of what you want but you would have to rely one one of them sharing some insight on how they achieve it with CM Model Manager

    • CM Model Manager for CA Plex integrates the Plex model administration process into the software change management process.

     

    Model API

    PlexAPILib30.IPlexAPI.OpenModel

    PlexAPILib30.IPlexAPI.SaveModel

    PlexAPILib30.IPlexAPI.CloseModel



  • 4.  Re: Automatically log in to model and extract libraries

    Posted Mar 19, 2015 06:14 AM

    OK, thank you. I'll have to research that.



  • 5.  Re: Automatically log in to model and extract libraries

    Posted Mar 19, 2015 06:14 AM

    here is a good link for your research Topic: Model Manager



  • 6.  Re: Automatically log in to model and extract libraries

    Posted Mar 19, 2015 06:30 AM


  • 7.  Re: Automatically log in to model and extract libraries

    Posted Mar 30, 2015 07:05 AM

    AutoIt - AutoIt

     

    ; Open Named Local Model

    Run("C:\Program Files (x86)\CA\Plex\6.1\Plex.exe C:\MyLocal.mdl")

     

    ; Wait 10 seconds for the CA Plex IDE window to appear.

    Local $hWnd = WinWait("MyLocal - CA Plex", "", 10)

     

    ; Activate the CA Plex IDE  window using the handle returned by WinWait.

    WinActivate($hWnd)

     

    ; Login Dialog (CTRL+L) for Group Model

    Send("^l")

     

    ; Access key for Group Model Path

    Send("!G")

     

    ; Enter desired group model path

    Send("X:\MyGrp")

     

    ; Access key for Name

    Send("!N")

     

    ; Enter desired plex user name

    Send("User")

     

    ; OK button is default button

    Send("{ENTER}")

     

    ; Extract All from Host (Ctrl + Shift + E)

    Send("^+e")

     

    ; Key Down to 14th Library

    Send("{DOWN 14}")

     

    ; Extract All from 14th Library (Ctrl + Shift + E)

    Send("^+e")

     

    ; Save

    Send("^s")

     

    ; Open Windows Menu Items (Alt + W)

    Send("!w")


    ; Close All Menu Item (L)

    Send("l")


    ; Open Object Browser

    Send("^b")

     

    ; Exit Script

    Exit

     

     

    Limitation - NO SPACES in the local model path

     



  • 8.  Re: Automatically log in to model and extract libraries

    Posted Mar 30, 2015 07:07 AM

    That sounds really interesting!

     

    I will definitely give it a try.

     

    Lähettäjä: GeorgeJeffcock

    Lähetetty: 30. maaliskuuta 2015 14:05

    Vastaanottaja: Juho Heinonen

    Aihe: Re:  - Automatically log in to model and extract libraries

     

    CA Communities <https://communities.ca.com/?et=watches.email.thread>

     

     

    Automatically log in to model and extract libraries

     

    reply from GeorgeJeffcock<https://communities.ca.com/people/GeorgeJeffcock?et=watches.email.thread> in CA Plex CA 2E - View the full discussion<https://communities.ca.com/message/241781179?et=watches.email.thread#241781179>