com.ptc.windchill.cadx.autopart
Interface AutoPartCreator
- All Known Implementing Classes:
- DefaultAutoPartCreator
- public interface AutoPartCreator
To customize the auto part creator:
· Create a class that implements com.ptc.windchill.cadx.autopart.AutoPartCreator
interface.
The only method AutoPartCreator interface has -
public WTPart createAutoPart( EPMWorkspace wsp, EPMDocument doc )
throws WTException, WTPropertyVetoException;
User need to implement this method in its class where the user specific
customized code will go.
· Modify the preference file accordingly.
Auto part creator preference is applicable to entire site.
A file named, autopart.ini can be found in site specific preference folder.
The default entry in the file is as follows -
[general]
autoPartCreator=com.ptc.windchill.cadx.autopart.DefaultAutoPartCreator
User can specify the class name of the custom implementation as the value
of key 'autoPartCreator' here.
e.g.
[general]
autoPartCreator=com.ptc.windchill.cadx.autopart.MyAutoPartCreator
Supported API: true
Extendable: false
createAutoPart
public WTPart createAutoPart(EPMWorkspace a_Workspace,
EPMDocument a_Document)
throws WTException,
WTPropertyVetoException
Supported API: true
- Parameters:
a_Workspace
- a_Document
-
- Returns:
- WTPart
- Throws:
WTException
WTPropertyVetoException