高级自定义 > 业务逻辑自定义 > 使用 Windchill 中的标准进行数据交换 > 使用 EXPRESS 进行 STEP 数据交换 > AP242 XPX 映射指南 > 将 AP242 (非 Windchill 数据) 导入到 Windchill EXPRESS 实体的映射表 > ChoiceMapping (包括规则)
  
ChoiceMapping (包括规则)
ChoiceMapping 映射表
AP242
Windchill
specificationInclusion
SpecificationInclusionAssignment
e_ChoiceMapping
如果 specificationInclusion.ifCondition 属于规范类型,并且 specificationInclusion.includedSpecification 属于规范类型或 specificationInclusion.includedSpecification.parameters 属于规范类型,则仅将其导入为 e_ChoiceMapping
specificationInclusion.id
r_number
如果未设置 specificationInclusion.id,则
r_number =”I-”+random number
specificationInclusion.description
description
specificationInclusion.ifCondition
specificationInclusion.ifConditionsourceChoiceReference = choice.ObjectId.ufid 中参考的规范中获取相关的选择
specificationInclusion.includedSpecification
specificationInclusion.includedSpecification 属于规范类型,则从 specificationInclusion.includedSpecification 获取属于该规范的选择
或者,如果 specificationInclusion.includedSpecification 属于条件类型,则从 specificationInclusion.includedSpecification.parameters 获取属于规范的选择
然后填充 e_ChoiceMappableChoiceLink
有关详细信息,请参阅 ChoiceMappableChoiceLink 的映射
获取分配给 SpecificationInclusionAssignmentDataValidityEffectivity
填充 e_WTDatedEffectivity
有关详细信息,请参阅 WTDatedEffectivity 的映射
SpecificationInclusionAssignment.assignedTo
SpecificationInclusionAssignment.assignedTo 参考的 ProductClass 获取相关的 OptionSet,并填充 e_OptionSetChoiceRuleLink
有关详细信息,请参阅 e_OptionSetChoiceRuleLink 的映射
r_local=true
externalTypeId = WCTYPE|com.ptc.windchill.option.model.ChoiceMapping
有关本地 ids 和 Ufids 的生成,请参阅 LocalId 和 Ufids 映射表
PART 21 表示
#1016= SPECIFICATIONINCLUSION(#1018,CHARACTERSTRING(' ((null))'),$,#770,#1090);
#1017= SPECIFICATIONINCLUSIONASSIGNMENT($,$,#1016,#207);
#1018= IDENTIFIER('I-00043',$,#58,#13);
#1090= ANDCONDITION($,$,$,*,(#838,#736),$);