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

Create a New view version using API

SOLVED
Highlighted
Level 7

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

Re: Create a New view version using API

Hi ALL,

Found the API. Here is the code:

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

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

Regards

Sudeep

2 REPLIES 2

Re: Create a New view version using API

Hi ALL,

Found the API. Here is the code:

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

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

Regards

Sudeep

Re: Create a New view version using API

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 ?