Skip to main content
1-Visitor
Apr 7, 2015 6:44 AM UTC
Solved

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

spai-2Answer
1-Visitor
Apr 9, 2015 6:42 AM UTC

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

spai-21-VisitorAuthorAnswer
1-Visitor
Apr 9, 2015 6:42 AM UTC

Hi ALL,

Found the API. Here is the code:

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

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

Regards

Sudeep

Translate
12-Amethyst
Dec 4, 2018 11:36 AM UTC

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 ?

Translate