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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Checkout Folder at certain Checkpoint

mgrullo
1-Newbie

Checkout Folder at certain Checkpoint

Hello everyone,

let's say I have the following PTC Project Structure:

A

|->SubfolderOfA

|-->SubSubfolderOfA

|-->AnotherSubSubfolderOfA

B

|->SubfolderOfB

Now "SubfolderOfA" has various Checkpoints, say v1.1, 1.2, 1.3, etc...

Now this is what I'd like to do, all of that <from the command line using si>:

> I'd like to checkout somewhere on my Filesystem (outside of any Sandbox) only "SubfolderOfA" (and all of it's child-Folders) and then switch between its various Checkpoints.

From what I could read in this forum, a build-sandbox could be a good starting point, like:

si createsandbox -P$MKS.pj --projectRevision=1.1

But, supposed the first step is right, how can i switch between the various Checkpoints of "SubfolderOfA"?

Thank you for your help!

Martino

1 ACCEPTED SOLUTION

Accepted Solutions

I got the same error

then I checked with

    si sandboxes

if this really is true.

This then brought me to the idea to try

si retargetsandbox --projectRevision=1.2 c:\absolute\path\to\project.pj


For me this seems to work.


BTW: You could also try %cd%\project.pj if your current directory is the sandbox.


     Jürgen


View solution in original post

4 REPLIES 4

Hello, a little update from my side.

I've executed the following commands:

si createsandbox --projectRevision=1.1 .

si retargetsandbox --projectRevision=1.2 .


But the latter gives me the following error:

Failed to retarget sandbox .: Retarget failed: The specified sandbox is not registered as a top level sandbox


Same error with an additional argument:

si retargetsandbox --projectRevision=1.2 project.pj


Using the GUI I'm able to retarget the sandbox successfully: 'Sandbox'->'Retarget'


So what am I doing wrong with the call to retargetsandbox?


Thank you

Martino

I got the same error

then I checked with

    si sandboxes

if this really is true.

This then brought me to the idea to try

si retargetsandbox --projectRevision=1.2 c:\absolute\path\to\project.pj


For me this seems to work.


BTW: You could also try %cd%\project.pj if your current directory is the sandbox.


     Jürgen


This brought me to the idea how to generate a more compact view of

project differences (members only, no subprojects)

si retargetsandbox --projectRevision=1.6 %cd%\project.pj

si print --recurse > sb_1_6.txt

si retargetsandbox %cd%\project.pj

si print --recurse > sb_CURRENT.txt

si difffiles --gui sb_1_6.txt sb_CURRENT.txt


Hello Klaus,

sorry for the late response, I was on vacation

Your solution with the absolute Path solved the Problem!

Thank you a lot!

Martino

Top Tags