Page 2 of 2

Re: VMSClient.Proj method with Path

Posted: 08 Jun 2020, 17:09
by Karol
Hi Etienne,

it's not necessary that the VPR is located in the Ventuz project folder where it was created!
BUT it must be located in a folder that was configured for VMS (RMB on VMS Icon in Taskbar -> Configure).
In other words: VMS can only start Runtime with a Project or VPR in folders that it knows about.

Hope this helps
Karol

Re: VMSClient.Proj method with Path

Posted: 08 Jun 2020, 17:19
by Etienne
Karol wrote:
08 Jun 2020, 17:09
In other words: VMS can only start Runtime with a Project or VPR in folders that it knows about.
Not only that but you MUST perform a scan before Ventuz recognizes the VPR. If you simply copy a VPR to a (VMS) Projects folder, you will get a "Requested Project not found" exception.

Now that I have your attention, anything that can be done about adding a VMS Projects folder programmatically? VMSClient.Proj doesn't seem to work nor does VMSClient.GetCFG.

Re: VMSClient.Proj method with Path

Posted: 09 Jun 2020, 10:54
by Karol
Hi Etienne,

you're right.
I have no idea why these restrictions are taken into account if you specify a full path to the VPR.
I will try to improve this for one of the next updates. But for you and your current version there is no workaround beside writing an own service which starts what you want...

Best Regards
Karol

Re: VMSClient.Proj method with Path

Posted: 09 Jun 2020, 16:18
by Etienne
Right now my application assumes the Projects folder is configured properly. I iterate through the VMSProjectDetails returned by VMSClient.Proj, looking for my VPR. If it is not found, I run a Scan and loop through VMSProjectDetails again. If it is still not found, a message is displayed for the VMS to be configured. With lerou's suggestion to edit the Config, I think the limitations can be worked around, but not with Ventuz 5 (couldn't find the location of the VMS Projects config file). Do you know where Ventuz 5 saves the VMS Projects configuration? I will post a separate question for this.