Skip to main content
1-Visitor
December 9, 2013
Solved

import viewsets from CLI

  • December 9, 2013
  • 2 replies
  • 2398 views

Hello,

We use MKS Integrityi Client 9.6.

There is any possibility for users to import published&mandatory viewsets from server via command line (CLI/Java API) ?

Thanks

    Best answer by khoppe

    Hello,

    what about this idea?

    Viewsets that are used from a user's client will be stored as a file in the user's homedirectory under

    .mks/viewset/user

    While starting the client, this directory will be checked which valid viewset files exist.

    All active viewsets will be loaded, all other valid viewsets can be called with Open Viewset.

    My suggestion for a workaround:

    Create an SW Distribution job working the way "Exit Client => copy viewset file into user's directory => start the client". Finally the user 'only' needs to open the viewset ....

    Greetings,

    Klaus

    2 replies

    1-Visitor
    December 12, 2013

    Unfortunately, there is currently no way to import a viewset into the client using the CLI.

    khoppe15-MoonstoneAnswer
    15-Moonstone
    January 3, 2014

    Hello,

    what about this idea?

    Viewsets that are used from a user's client will be stored as a file in the user's homedirectory under

    .mks/viewset/user

    While starting the client, this directory will be checked which valid viewset files exist.

    All active viewsets will be loaded, all other valid viewsets can be called with Open Viewset.

    My suggestion for a workaround:

    Create an SW Distribution job working the way "Exit Client => copy viewset file into user's directory => start the client". Finally the user 'only' needs to open the viewset ....

    Greetings,

    Klaus

    1-Visitor
    January 4, 2014

    Hello Klaus,

    in this way we implemented. But we want to have an "official" reply from PTC.We aren't sure if this brute implementation does not affect somehow MKS client.

    Thank you for support.

    1-Visitor
    January 6, 2014

    While this won't be officially supported (we haven't tested this method) I cannot see anything wrong with it, and I'd be happy to support it if you have problems with it.