Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How To find all "0" Level Parts from Windchill

$
0
0

Hi Vivek,

 

The basic code to create WTPart.

 

 

WTPart part = WTPart.

newWTPart(“Myname”,”MyNumber”);

 

try {

 

part.setContainer(container);

Persistable persistable = PersistenceHelper.

manager.save(part);

 

 

}

catch (WTPropertyVetoException e) { 

//

TODO

Auto-generated catch block

 

e.printStackTrace();

}

 

{

 

#

part.setContainer(nmCommandBean.getContainer());

Persistable persistable = PersistenceHelper.

manager.save(part);

 

For document use WTDocument.



If you want to create Subtype if WTPart.

use







you can also use the code in workflow.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>