WTPartUsageLink and Occurrence
Mapping Table
WNC
BOM
e_WTPartUsageLink
NextAssemblyViewUsage.relationType=’next assembly view’
Attributes; localId, ufid, externalTypeId, traceCode, lineNumber, cadSynchronized, componentId
For more information see Model Attributes Mapping.
With PropertyDefinitionSelect as NextAssemblyViewUsage
expressionData
(gets populated for advance assigned expression on the usage)
Condition entity representing this expression data
ConditionalConfiguration.condition=condition
EffectivityAssignment.assignedEffectivity=ConditionalConfiguration
EffectivityAssignment.assignedTo=NextAssemblyViewUsage
EffectivityAssignment.role=’required’
EffectivityAssignment.effectivityIndication=TRUE
For more information, see expressionData Mapping.
quantityAmount, quantityUnit
NumericalValue.valueComponent= quantityAmount
NumericalValue.unit = Unit
Unit.name = quantityUnit
NextAssemblyViewUsage.quantity = NumericalValue
uses
For WTPartUsageLink Mapping : NextAssemblyViewUsage.related=PartView
For Occurrence Mapping : SingleOccurrence.definition=PartView
The ‘uses’ role in Windchill is a WTPartMaster. However AP242 requires a PartView entity which maps to a WTPart. You can navigate from a PartView (WTPart) to the Part (WTPartMaster) using the INVERSE attributes on the PartView and PartVersion entities.
usedBy
For WTPartUsageLink Mapping : NextAssemblyViewUsage.relating=AssemblyDefinition
For Occurrence Mapping : NextAssemblyOccurrenceUsage.relating=AssemblyDefinition
Occurrence (if present)
NextAssemblyOccurrenceUsage.relationType=’next assembly occurrence’
NextAssemblyOccurrenceUsage.related=SingleOccurrence
Occurrence.name
SingleOccurrence.id
AND
NextAssemblyViewUsage.locationIndicator = (All occurrence names concatenated together. Concatenation symbol = ‘,’)
Occurrence. occGlobalId, buildStatus
For more information see Model Attributes Mapping.
With PropertyDefinitionSelect as SingleOccurrence.
Occurrence.transformString
CartesianTransformation.rotationMatrix,translationVector = Sections of transformString after split by ‘#’.
NextAssemblyOccurrenceUsage.placement = CartesianTransformation
Part 21 Representation
#1= ASSEMBLYDEFINITION($,$,$,$,$,#11,$,$);
#11= VIEWCONTEXT(CHARACTERSTRING('part definition'),
PROXYSTRING('mechanical design'),
PROXYSTRING('design'));
#51= ASSEMBLYDEFINITION($,$,$,$,$,#11,$,$);
#228= NEXTASSEMBLYVIEWUSAGE($,$,$,*,#51,#1,$,IDENTIFIERSTRING('A1,A2'),#230);
#229= PROPERTYVALUEASSIGNMENT($,$,$,$,(#231,#233,#234,#235,#236,#237),#228,$);
#230= NUMERICALVALUE($,$,PROPERTYDEFINITIONSTRING('quantity'),$,$,$,#220,2.,$);
#231= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('localId'),$,$,CHARACTERSTRING
('wt.part.WTPartUsageLink:160359'));
#233= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('ufid'),$,$,CHARACTERSTRING
('wt.part.WTPartUsageLink:160359|789177195-1452009825602-
2048102341-88-244-152-10|
esdcsv-ccv11c.ptcnet.ptc.com'));
#234= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('externalType'),$,$
,CHARACTERSTRING
('WCTYPE|wt.part.WTPartUsageLink'));
#235= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('traceCode'),$,$,
CHARACTERSTRING('0'));
#236= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('cadSynchronized'),$,$,
CHARACTERSTRING('no'));
#237= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('componentId'),$,$,
CHARACTERSTRING
('ae7fd4fa-3452-49ed-a1ec-00cfc8ed15a2'));
#238= PROPERTYVALUEASSIGNMENT($,$,$,$,(#241,#243),#239,$);
#239= SINGLEOCCURRENCE(IDENTIFIERSTRING('A1'),$,$,$,#1);
#240= NEXTASSEMBLYOCCURRENCEUSAGE($,$,$,*,#51,#239,#244);
#241= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('occGlobalId'),$,$
,CHARACTERSTRING
('789177195-1452009825602-2048102341-88-244-152-10:1382'));
#243= STRINGVALUE($,$,PROPERTYDEFINITIONSTRING('buildStatus'),$,$,
CHARACTERSTRING
('not_built'));
#244= CARTESIANTRANSFORMATION($,$,((0.723874543659168,0.01563703695269772,
-0.6897543969541414),(0.6308190108172688,0.3898854360647259,0.
6708626702508803),
(0.2794154981989259,-0.9207305956793002,0.2723640019280953)),1.,
(2.,3.000000000000001,4.000000000000001));
這是否有幫助?