Class CadCollector
java.lang.Object
com.ptc.windchill.collector.api.cad.CadCollector
- All Implemented Interfaces:
Collector
CAD specific collector object able to gather data objects per configured specification and options.
This is specific collector object type with methods for gathering data for CAD source objects.
Supported API: true
Extendable: false
This is specific collector object type with methods for gathering data for CAD source objects.
Supported API: true
Extendable: false
Here is an example how to create CadCollector new instance and use it to get result.
CadCollector collector = CadCollector.newInstance(seeds, criteria)
.dependents(GatherDependents.ONLY_REQUIRED)
.associatedParts(GatherAssociatedParts.ALL)
.container(myContainer)
.workspace(myWorkspace);
CadCollectedResult result = collector.collect();
Required parameters are CAD seeds and navigation criteria, others are optional.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefine which associated parts to gather.static enumDefine which dependents to gather.static enumDefine which drawings to gather.static enumDefine which family generic objects to gather.static enumDefine which family members to gather. -
Method Summary
Modifier and TypeMethodDescriptionSet optional parameter defining which associated parts to gather.collect()Gather data objects according to a configured specification and selected options.container(WTContainer wtContainer) Set container optional parameter.Set optional parameter defining which dependents to gather.drawings(CadCollector.GatherDrawings option) Set optional parameter defining which drawings to gather.Set optional parameter defining which family generic objects to gather.Set optional parameter defining which family members to gather.static CadCollectornewInstance(WTCollection seeds, NavigationCriteria criteria) Factory to create new instance from required parameters.toString()Convenient instance representation useful for logging and debugging.workspace(EPMWorkspace epmWorkspace) Set workspace optional parameter.
-
Method Details
-
workspace
Set workspace optional parameter.- Parameters:
epmWorkspace- workspace object.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
container
Set container optional parameter.- Parameters:
wtContainer- container object.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
dependents
Set optional parameter defining which dependents to gather.- Parameters:
option-CadCollector.GatherDependentsvalue defining which dependents to gather.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
associatedParts
public CadCollector associatedParts(CadCollector.GatherAssociatedParts option) throws WTPropertyVetoException Set optional parameter defining which associated parts to gather.- Parameters:
option-CadCollector.GatherAssociatedPartsvalue defining which associated parts to gather.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
drawings
Set optional parameter defining which drawings to gather.- Parameters:
option-CadCollector.GatherDrawingsvalue defining which drawings to gather.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
familyGenerics
public CadCollector familyGenerics(CadCollector.GatherFamilyGenerics option) throws WTPropertyVetoException Set optional parameter defining which family generic objects to gather.- Parameters:
option-CadCollector.GatherFamilyGenericsvalue defining which family generic objects to gather.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
familyMembers
public CadCollector familyMembers(CadCollector.GatherFamilyMembers option) throws WTPropertyVetoException Set optional parameter defining which family members to gather.- Parameters:
option-CadCollector.GatherFamilyMembersvalue defining which family members to gather.- Returns:
- CadCollector object to allow chaining for convenient compact calls.
- Throws:
WTPropertyVetoException- if input parameter value was invalid.
Supported API: true
-
collect
Gather data objects according to a configured specification and selected options.
Supported API: true- Specified by:
collectin interfaceCollector- Returns:
- instance of
CollectedResultfrom where you can get access to all collected objects. - Throws:
WTException- contains error message if collect operation failed and may describe invalid input.WTPropertyVetoException- if input was invalid.- See Also:
-
toString
Convenient instance representation useful for logging and debugging.