|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: true
Extendable: false
Method Summary | |
void |
addToFamily(EPMDocument genericInst,
EPMDocument instance,
String asStoredName)
Deprecated. at R8.0, use addToFamily( WTKeyedMap) |
void |
addToFamily(WTKeyedMap instances)
Add a collection of instances to a given family by creating an EPMContainedIn link and an EPMVariantLink between the instance and the generic. |
EPMDocumentMaster |
changeCADName(EPMDocumentMaster master,
String newCADName)
Deprecated. use changeCADName(WTKeyedMap) |
WTSet |
changeCADName(WTKeyedMap masters)
Changes the CAD name attributes on the given EPMDocumentMaster. |
QueryResult |
checkCompatibility(QueryResult documents)
Deprecated. at R8.0, use checkCompatibility( WTCollection) |
List |
checkCompatibility(WTCollection documents)
Verifies that the EPMDocuments passed as input are compatible. |
QueryResult |
checkoutFamilyTables(Collection instances,
Collection familyTables,
Folder workingFolder)
Checkout the EPMDocuments representing family instances. |
Vector |
collectChangeCADNameVetos(EPMDocumentMaster target)
Deprecated. no replacement |
Vector |
collectRenameVetos(WTObject object)
Deprecated. |
void |
deleteObjects(Collection objects)
Given a set of objects (Workables), deletes all the objects taking care of circular dependency between them. |
QueryResult |
findCheckedOutIterations(EPMDocumentMaster master)
Deprecated. at R8.0, no replacement |
QueryResult |
findReferencedIterations(EPMDocumentMaster master)
Deprecated. at R8.0, no replacement |
QueryResult[] |
getBomDifferences(EPMDocument firstDocument,
EPMDocument secondDocument)
Compares the bill of material of an EPMDocument with another EPMDocument. |
Boolean |
isCADNameRequired(EPMAuthoringAppType type)
Deprecated. This method always returns true because CAD name is required for all authoring application. |
EPMDocument |
makeStandalone(EPMDocument instance)
Make a family instance a standalone document by removing the EPMContainedIn links and EPMVariantLinks. |
void |
markAsModified(QueryResult instances)
Deprecated. at R8.0 |
void |
markAsModified(WTCollection instances)
Deprecated. at R8.0 |
void |
removeAllDependencies(EPMDocument document)
Deprecated. at R8.0, please use removeAllDependencies(WTCollection) |
void |
removeAllDependencies(WTCollection documents)
Supported API: false |
void |
removeFromFamily(EPMDocument topLevelGeneric,
EPMDocumentMaster instanceMaster)
Deprecated. at R8.0, use removeFromfamily( EPMDocument, WTCollection) |
void |
removeFromFamily(EPMDocument generic,
WTCollection instanceMasters)
Removes a collection of family instance from a generic by removing the EPMContainedIn links between the instance and the generic. |
QueryResult |
reviseAll(Collection toRevise)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
QueryResult |
reviseAll(Collection toRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
WTKeyedMap |
reviseAll(WTKeyedMap toRevise)
This method creates a new in-line version of the EPMDocuments and WTParts given. |
QueryResult |
reviseDocsAndParts(EPMDocument[] docsToRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
QueryResult |
reviseFamilyAndParts(EPMFamily family,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. at R8.0, use reviseALL( WTKeyedMap) |
QueryResult |
revisePartsAndDoc(EPMDocument docToRevise,
ReviseOptions options,
ConfigSpec partConfigSpec)
Deprecated. Use reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec) |
QueryResult |
revisePartsAndDoc(ObjectVector partsToRevise,
ReviseOptions options)
Deprecated. Get the build source document and then use reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
instead. |
MultiDeleteValidationResult |
validateObjectsForDeletion(Collection objects)
Given a set of objects (Workables), validates the objects for deletion taking care of circular dependency between them. |
Method Detail |
public void removeAllDependencies(EPMDocument document) throws WTException
document
-
WTException
public List checkCompatibility(WTCollection documents) throws WTException
documents
- Collection of EPMDocuments to check
WTException
public QueryResult[] getBomDifferences(EPMDocument firstDocument, EPMDocument secondDocument) throws WTException
The element 0 of the returned array is a QueryResult that includes the EPMMemberLinks to identify the EPMDocumentMasters that were used in the first EPMDocument but not the second EPMDocument.
The element 1 of the returned array is a QueryResult that includes the EPMMemberLinks to identify the EPMDocumentMasters that were used in the second EPMDocument but not the first EPMDocument.
The element 2 of the returned array is a QueryResult that includes
the EPMMemberLinks to identify the EPMDocumentMasters that were used
in both the first and the second EPMDocuments but have different quantities.
Supported API: true
firstDocument
- secondDocument
-
WTException
public QueryResult revisePartsAndDoc(EPMDocument docToRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
Use reviseFamilyAndParts(wt.epm.EPMFamily, wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
if you need to revise all the members
of the family together
Supported API: false
docToRevise
- EPMDocument to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else
built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
{@link #reviseFamilyAndParts}
public void removeAllDependencies(WTCollection documents) throws WTException
documents
-
WTException
public QueryResult revisePartsAndDoc(ObjectVector partsToRevise, ReviseOptions options) throws WTException
reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
instead.
This method returns a QueryResult of object pairs. For each WTPart that is not built by an EPMDocument, this method will return a WTPart[2]. For each WTPart that is built, this method will return an EPMBuildRule[2]. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
This method does not attempt to revise family of objects together.
If you need to revise all the members of family together, use reviseFamilyAndParts(wt.epm.EPMFamily, wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
method.
Supported API: false
partsToRevise
- list of the WTParts to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project.
WTException
reviseFamilyAndParts(wt.epm.EPMFamily, wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
,
reviseDocsAndParts(wt.epm.EPMDocument[], wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
public QueryResult findReferencedIterations(EPMDocumentMaster master) throws WTException
master
-
WTException
public QueryResult findCheckedOutIterations(EPMDocumentMaster master) throws WTException
master
-
WTException
public Vector collectRenameVetos(WTObject object) throws WTException
object
- The object which will be validated for rename/number.
WTException
public EPMDocumentMaster changeCADName(EPMDocumentMaster master, String newCADName) throws WTException
master
- newCADName
- new CAD Name to be assigned
WTException
public Vector collectChangeCADNameVetos(EPMDocumentMaster target) throws WTException
target
-
WTException
public Boolean isCADNameRequired(EPMAuthoringAppType type) throws WTException
type
- Authoring Application type
WTException
public void markAsModified(QueryResult instances) throws WTException
instances
-
WTException
public void removeFromFamily(EPMDocument topLevelGeneric, EPMDocumentMaster instanceMaster) throws WTException
topLevelGeneric
- instanceMaster
-
WTException
public WTKeyedMap reviseAll(WTKeyedMap toRevise) throws WTException
This method returns a WTKeyedHashMap where the key is the original
object and the value, the new version.
Supported API: true
toRevise
- the key is the object to revise and the value a ReviseOptions object.
WTException
public void addToFamily(EPMDocument genericInst, EPMDocument instance, String asStoredName) throws WTException
genericInst
- instance
- asStoredName
- Name of instance as stored in generic
WTException
public EPMDocument makeStandalone(EPMDocument instance) throws WTException
instance
-
WTException
public QueryResult reviseDocsAndParts(EPMDocument[] docsToRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
This method does not attempt to revise documents in a family together.
Use reviseFamilyAndParts(wt.epm.EPMFamily, wt.epm.ReviseOptions, wt.vc.config.ConfigSpec)
if you need to revise all the members
of the family together.
Supported API: true
docsToRevise
- Array of EPMDocuments to reviseoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
{@link #reviseFamilyAndParts}
public QueryResult reviseFamilyAndParts(EPMFamily family, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
EPMFamily should be complete (i.e. all the instances) should be added in family. Use EPMFamily.getEPMFamily(EPMDocument generic) to create/load EPMFamily.
This method returns a QueryResult of object pairs. If the EPMDocument
does not build any WTParts, this method will return an EPMDocument[2].
If it does, this method will return one EPMBuildRule[2] for each WTPart
that the EPMDocument builds. The first element in the array contains
the new version or build rule while the second contains the original
version or build rule.
Supported API: true
family
- EPMFamily to be revised.options
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
public QueryResult checkCompatibility(QueryResult documents) throws WTException
documents
- QueryResult of EPMDocuments to check
WTException
public void deleteObjects(Collection objects) throws WTException
objects
-
WTException
public MultiDeleteValidationResult validateObjectsForDeletion(Collection objects) throws WTException
objects
-
WTException
public QueryResult reviseAll(Collection toRevise, ReviseOptions options, ConfigSpec partConfigSpec) throws WTException
EPMFamily should be complete (i.e. all the instances) should be added in family. Use EPMFamily.getEPMFamily(EPMDocument generic) to create/load EPMFamily.
PLEASE NOTE that this API is temporary and will change.
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
Supported API: false
toRevise
- Collection of EPMDocuments and EPMFamilies to revise. Any other objects specified in the array are ignoredoptions
- list of properties to assign to the newly created versions. If a property is not specified (i.e. set to null), the new version inherits the value for that property from the original version. The properties that you may specify are a folder and life cycle template for documents, a folder and life cycle template for parts and a project. If reviseParts property is set to false, only documents are revised else built parts are also revised.partConfigSpec
- configuration spec used to find the appropriate version of each WTPart that the given EPMDocument builds
WTException
{@link #reviseFamilyAndParts}
,
{@link #reviseDocsAndParts}
public void removeFromFamily(EPMDocument generic, WTCollection instanceMasters) throws WTException
generic
- instanceMasters
- Instance Masters to be removed
WTException
public QueryResult reviseAll(Collection toRevise) throws WTException
This method returns a QueryResult of object pairs. If the EPMDocument does not build any WTParts, this method will return an EPMDocument[2]. If it does, this method will return one EPMBuildRule[2] for each WTPart that the EPMDocument builds. The first element in the array contains the new version or build rule while the second contains the original version or build rule.
Supported API: false
toRevise
- Collection of ReviseOptions which include the EPMDocuments andWTParts to revise in the object field of the ReviseOptions.
WTException
{@link #reviseFamilyAndParts}
,
{@link #reviseDocsAndParts}
public void addToFamily(WTKeyedMap instances) throws WTException
instances
- A map with the EPMDocument instance as the key and A FamilyInfo object as the value. The FamilyInfo object will contain the immediate generic and other information such as the asStoredName.
WTException
public void markAsModified(WTCollection instances) throws WTException
instances
- Collection of instances to be processed.
WTException
public QueryResult checkoutFamilyTables(Collection instances, Collection familyTables, Folder workingFolder) throws WTException
instances
- familyTables
- workingFolder
- Folder in which to put the checked-out objects.
WTException
public WTSet changeCADName(WTKeyedMap masters) throws WTException
masters
- The keys are EPMDocumentMaster objects. The values are new CAD names.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |