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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Create a New view version using API

spai-2
1-Newbie

Create a New view version using API

Hi All,

Is it possible to create a new view version of a parent part using API.

For eg: I have a parent part with 1.1(Design) as the view version. Now i need to create a new view version with 1.1(Manufacturing). I should not alter the old view version.

Regards

Sudeep

1 ACCEPTED SOLUTION

Accepted Solutions
spai-2
1-Newbie
(To:spai-2)

Hi ALL,

Found the API. Here is the code:

vmPart = (WTPart) ViewHelper.service.newBranchForView(vmPart, "Manufacturing");

vmPart= (WTPart) PersistenceHelper.manager.store(vmPart);

Regards

Sudeep

View solution in original post

2 REPLIES 2
spai-2
1-Newbie
(To:spai-2)

Hi ALL,

Found the API. Here is the code:

vmPart = (WTPart) ViewHelper.service.newBranchForView(vmPart, "Manufacturing");

vmPart= (WTPart) PersistenceHelper.manager.store(vmPart);

Regards

Sudeep

KOEL_PLM
10-Marble
(To:spai-2)

I have part with service view 00.1(Service),now i need to create part with design view 00.1(Design).

Is it possible to create part with design view which already have part with service view ?

Top Tags