cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Publish to on-prem server

SOLVED
Aquamarine

Publish to on-prem server

Did anybody figure out how to automate publishing to on-prem server? I figured that I can automate creation of pvz file and using pvaroptimizer.exe create high, medium and low fidelity of the model. Let say I always will use low as a default, than I can create a Vuforia project with default dummy pvz file in it and replace that pvz with the one I export from Creo (change naming and so on). It does work manually, I want to automate this process now. 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Publish to on-prem server

Hello,

 

If I understood well, the steps in this use case should be :

     1. Create a pvz from an Assembly or a Part file of Creo Parametric

         it is possible with one these software :

               a. Creo View Adapters by command line

                   More details here : https://www.ptc.com/en/support/article?n=CS25650

               b. In Windchill with GDD

                   More details here :https://www.ptc.com/en/support/article?n=CS112832

               c. pvaroptimizer.exe provided in Vuforia Studio

               d. In Creo Parametric with using MapKey and Batch Tool

                   More details here : https://www.ptc.com/en/support/article?n=CS109444

       

         In a batch file, it will be a command line to run.

 

     2. In Vuforia Studio, create a new Project 

         I think here, that the only solution, is to copy an existing Project, rename it and paste it in %USERPROFILE%\Documents\VuforiaStudio\Projects in Windows.

         It is needed also to paste the pvz file in the %USERPROFILE%\Documents\VuforiaStudio\Projects\<project name>\src\phone\resources\Uploaded folder.

         At the end, in the %USERPROFILE%\Documents\VuforiaStudio\Projects\<project name>\src\phone\components folder, in each .json files where a Model Widget is used, it is needed to replace any string who refers to pvz file to new one.

"src": "Uploaded/<filename>.pvz",

   

      To replace a string in a batch in Windows, we have plenty of solutions :

       https://stackoverflow.com/questions/60034/how-can-you-find-and-replace-text-in-a-file-using-the-wind...

 

      I recommend to use the Powershell one provided in this thread.

   

      3. Publish to Vuforia Experience Service

          Please see this web page in Help Center :                 http://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FPublishProjectsFromCmdLine....

           and this article :

           https://www.ptc.com/en/support/article?n=CS281363

 

So, it is possible to create a simple batch file to build new Project from an existing one and to Publish the Experiences in Vuforia Experience Service.

It just need to have all software needed in the same workstation.

 

Best regards,

Samuel

View solution in original post

2 REPLIES 2

Re: Publish to on-prem server

Hello,

 

If I understood well, the steps in this use case should be :

     1. Create a pvz from an Assembly or a Part file of Creo Parametric

         it is possible with one these software :

               a. Creo View Adapters by command line

                   More details here : https://www.ptc.com/en/support/article?n=CS25650

               b. In Windchill with GDD

                   More details here :https://www.ptc.com/en/support/article?n=CS112832

               c. pvaroptimizer.exe provided in Vuforia Studio

               d. In Creo Parametric with using MapKey and Batch Tool

                   More details here : https://www.ptc.com/en/support/article?n=CS109444

       

         In a batch file, it will be a command line to run.

 

     2. In Vuforia Studio, create a new Project 

         I think here, that the only solution, is to copy an existing Project, rename it and paste it in %USERPROFILE%\Documents\VuforiaStudio\Projects in Windows.

         It is needed also to paste the pvz file in the %USERPROFILE%\Documents\VuforiaStudio\Projects\<project name>\src\phone\resources\Uploaded folder.

         At the end, in the %USERPROFILE%\Documents\VuforiaStudio\Projects\<project name>\src\phone\components folder, in each .json files where a Model Widget is used, it is needed to replace any string who refers to pvz file to new one.

"src": "Uploaded/<filename>.pvz",

   

      To replace a string in a batch in Windows, we have plenty of solutions :

       https://stackoverflow.com/questions/60034/how-can-you-find-and-replace-text-in-a-file-using-the-wind...

 

      I recommend to use the Powershell one provided in this thread.

   

      3. Publish to Vuforia Experience Service

          Please see this web page in Help Center :                 http://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FPublishProjectsFromCmdLine....

           and this article :

           https://www.ptc.com/en/support/article?n=CS281363

 

So, it is possible to create a simple batch file to build new Project from an existing one and to Publish the Experiences in Vuforia Experience Service.

It just need to have all software needed in the same workstation.

 

Best regards,

Samuel

View solution in original post

Re: Publish to on-prem server

Samuel,

with is what I was looking for. Thank you

 

I will try to automate it now using info you provided

Announcements
Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection