Package com.ptc.windchill.designasmsrv
Class CARBuilderHelper
java.lang.Object
com.ptc.windchill.designasmsrv.CARBuilderHelper
Creates:
- default CAD alternate representation(CAR) - CAR container, as ESR EPMDocument, based on specified parameters
- reference to top-level assembly, specified by name
* Note: Parameter esrTemplateName, with extension, can be set in ESRDocumentInfo
If not specified as parameter, must be configured in wt.properties for authored application types:
for Creo - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelProE
for Catia - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelCat
for Windchill - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelWNC
Supported API: true
Extendable: false
- default CAD alternate representation(CAR) - CAR container, as ESR EPMDocument, based on specified parameters
- reference to top-level assembly, specified by name
* Note: Parameter esrTemplateName, with extension, can be set in ESRDocumentInfo
If not specified as parameter, must be configured in wt.properties for authored application types:
for Creo - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelProE
for Catia - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelCat
for Windchill - com.ptc.windchill.designasmsrv.AssemblyDocumentFactory.nameOfCADESRTemplatelWNC
Supported API: true
Extendable: false
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildDefaultCAR(WTPrincipal user, EPMAuthoringAppType authAppType, ESRDocumentInfo esrDocInfo, String topLevelAssemblyCADName, String epmWorkspaceName) Build default CAD alternate representation(CAR):
- create ESR CAD assembly document, as CAR container, and reference to top level assembly, based on provided parameters
- create CAD alternate representation(CAR) with default definition and result rules
Note: configuration of esrTemplateName in the wt.properties is allowed only, if the default CAR is created programmatically.
In this case, if esrTemplateName in ESRDocumentInfo is null, template name is used from the wt.properties, based on authAppTypeget created ESR document as AlternateRepContainervoidsetDesignContextPrefDefinition(String definitionName, boolean useExcludeAction) setDesignContextPrefDefinition() - optional Default definition name can be modified before buildDefaultCAR() call, to specify preference definition representation rule type to be used for creation default definition rules By default: prefDefinitionName - predefined actionDefaultRule - INCLUDE
-
Constructor Details
-
CARBuilderHelper
public CARBuilderHelper()
Supported API: true
-
-
Method Details
-
buildDefaultCAR
public void buildDefaultCAR(WTPrincipal user, EPMAuthoringAppType authAppType, ESRDocumentInfo esrDocInfo, String topLevelAssemblyCADName, String epmWorkspaceName) throws WTException Build default CAD alternate representation(CAR):
- create ESR CAD assembly document, as CAR container, and reference to top level assembly, based on provided parameters
- create CAD alternate representation(CAR) with default definition and result rules
Note: configuration of esrTemplateName in the wt.properties is allowed only, if the default CAR is created programmatically.
In this case, if esrTemplateName in ESRDocumentInfo is null, template name is used from the wt.properties, based on authAppType- Parameters:
user- - WTPrincipal, optional, by default - user object is retrieved from sessionauthAppType- - EPMAuthoringAppType, if null, default WINDCHILL AuthApplication usedesrDocInfo- - required, ESRDocumentInfo, to set: esrCADName, esrTemplateName(with extension), wtContainer, wtOrganization, IBAs, and other parameters.topLevelAssemblyCADName- - required, String, top-level assembly CAD name(with extension)epmWorkspaceName- - String, EPMWorkspace name, required, to create ESR document in workspace- Throws:
WTException-
Supported API: true
-
setDesignContextPrefDefinition
setDesignContextPrefDefinition() - optional Default definition name can be modified before buildDefaultCAR() call, to specify preference definition representation rule type to be used for creation default definition rules By default: prefDefinitionName - predefined actionDefaultRule - INCLUDE- Parameters:
definitionName-useExcludeActionDefaultRule- - boolean
Supported API: true
-
getAlternateRepContainer
get created ESR document as AlternateRepContainer- Returns:
- AlternateRepContainer
- Throws:
WTException-
Supported API: true
-