Package com.ptc.windchill.designasmsrv
Class AssemblyBuilder
java.lang.Object
com.ptc.windchill.designasmsrv.AssemblyBuilder
The class to support CAD/WNC authored design assembly, dependency link processing:
- create design assembly document based on parameters: EPMAuthoringAppType, CAD name, template name.
Create assembly document API will throw Exception for the following parameters: - assembly template docType/subtype values must correspond to "CAD assembly"/"design" types - CAD name must be unique - workspace or container must be specified - EPMAuthoringAppType must be specified, if template name is empty
- create dependency member link based on DependencyMemberLinkInfo parameters for CAD/WNC authored assemblies
- annotate/or save non persistent link
- validate and update child of non persistent member link
- remove persistent member links
Supported API: true
Extendable: false
- create design assembly document based on parameters: EPMAuthoringAppType, CAD name, template name.
Create assembly document API will throw Exception for the following parameters: - assembly template docType/subtype values must correspond to "CAD assembly"/"design" types - CAD name must be unique - workspace or container must be specified - EPMAuthoringAppType must be specified, if template name is empty
- create dependency member link based on DependencyMemberLinkInfo parameters for CAD/WNC authored assemblies
- annotate/or save non persistent link
- validate and update child of non persistent member link
- remove persistent member links
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncreateDesignAssemblyDocument(EPMAuthoringAppType authApplication, AssemblyDocumentInfo assemblyDocumentInfo, EPMWorkspace workspace) Create Design Assembly Document(does not support ESR document)createMemberLinks(Map<EPMDocument, Collection<DependencyMemberLinkInfo>> assemblyToDependencyInfoMap) Create new persistent annotated EPMMemberLinks based on assembly dependency member link dependency info CAD authored assembly links will be annotated Note: link name, is not requiredcreateMemberLinks(EPMDocument assemblyDoc, Collection<DependencyMemberLinkInfo> memberLinkInfoCollection) Create EPMMemberLinks based on dependency member link info parameters: created links will be saved, CAD authored asm links will be annotated Note: link name, is not required
-
Method Details
-
createDesignAssemblyDocument
public EPMDocument createDesignAssemblyDocument(EPMAuthoringAppType authApplication, AssemblyDocumentInfo assemblyDocumentInfo, EPMWorkspace workspace) throws WTException Create Design Assembly Document(does not support ESR document)- Parameters:
authApplication- - required, default - Windchill authApp, if nullassemblyDocumentInfo- - AssemblyDocumentInfo, to provide document infoworkspace- - required, to create document in WS- Returns:
- - assembly EPMDocument
- Throws:
WTException- Note: only method parameters are valid, default parameters(defaultWorkspace, defaultLocale) not applied
Supported API: true
-
createMemberLinks
public WTKeyedMap createMemberLinks(Map<EPMDocument, Collection<DependencyMemberLinkInfo>> assemblyToDependencyInfoMap) throws WTExceptionCreate new persistent annotated EPMMemberLinks based on assembly dependency member link dependency info CAD authored assembly links will be annotated Note: link name, is not required- Parameters:
assemblyToDependencyInfoMap- - Map invalid input: '<'EPMDocument, Collection> - Returns:
- WTKeyedMap - map with EPMDocument keys and persistent EPMMemberLinks WTCollection
- Throws:
WTException-
Supported API: true
-
createMemberLinks
public WTCollection createMemberLinks(EPMDocument assemblyDoc, Collection<DependencyMemberLinkInfo> memberLinkInfoCollection) throws WTException Create EPMMemberLinks based on dependency member link info parameters: created links will be saved, CAD authored asm links will be annotated Note: link name, is not required- Parameters:
assemblyDoc- - EPMDocumentmemberLinkInfoCollection- - DependencyMemberLinkInfo- Returns:
- WTCollection - persistent EPMMemberLinks
- Throws:
WTException-
Supported API: true
-