Skip to main content
1-Visitor
April 7, 2015
Solved

Create a New view version using API

  • April 7, 2015
  • 1 reply
  • 2518 views

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

Best answer by 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

1 reply

spai-21-VisitorAuthorAnswer
1-Visitor
April 9, 2015

Hi ALL,

Found the API. Here is the code:

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

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

Regards

Sudeep

12-Amethyst
December 4, 2018

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 ?