Class AssemblyBuilder

java.lang.Object
com.ptc.windchill.designasmsrv.AssemblyBuilder

public class AssemblyBuilder extends Object
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
  • 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 null
      assemblyDocumentInfo - - AssemblyDocumentInfo, to provide document info
      workspace - - 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 WTException
      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 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 - - EPMDocument
      memberLinkInfoCollection - - DependencyMemberLinkInfo
      Returns:
      WTCollection - persistent EPMMemberLinks
      Throws:
      WTException -

      Supported API: true