添加新项目/添加新协议
如果您已定制 express 架构或采用新架构或针对单个 AP 为不同客户采用不同的标准,或者除预设映射外还想编写自己的映射集,那么需要遵循以下方法。
1. <Windchill>\codebase\registry\ixb\multiformat 目录中的 stepformat.xml 中添加新的协议条目。
<protocol>
<name>AP214_CUSTOMIZED</name>
<default>false</default>
<specification>
<definition>
<file>stepdex/ap214/schema/10303-214e2-aim-long.exp </file>
<schemaName>AUTOMOTIVE_DESIGN</schemaName>
</definition>
</specification>
<configuration>
<exportConfiguration>
<mappingFile>stepdex/ap214/export/WNCTOAP2141.xpxprj</mappingFile>
<schemaName>WNCTOAP214NEW</schemaName>
<!-- PART_21 | PART_28 -->
<defaultDataExchangeForm>PART_28</defaultDataExchangeForm>
</exportConfiguration>
<importConfiguration>
<mappingFile>stepdex/ap214/importxpx/AP214TOWNC1.xpxprj</mappingFile>
<schemaName>AP214TOWNCNEW</schemaName>
</importConfiguration>
</configuration>
</protocol>
* 
AP214TOWNCNEW 在整个项目中应是唯一的。这是导入/导出框架的要求。
2. 将新值添加到枚举器 IXFormatProtocolTypeRB
AP214_CUSTOMIZED.value=STEP AP214 protocol (customized)
AP214_CUSTOMIZED.comment=ISO 10303 Standard format
or Application Interpreted Model
(AIM) Part 21/28 (customized)
AP214_CUSTOMIZED.shortDescription=STEP Foundation P 21/28
ith XPX (customized)
AP214_CUSTOMIZED.order=80
注意:- 确保键与新添加的协议条目中的 <名称> 元素的值匹配
3. 通过在 IXBDocumentDelagetSTEP-service.properties.xconf 中添加条目并进行传播,为新协议配置 IXBDocumentDelegate
<Service context="default" name="wt.ixb.publicforapps.IXDocumentDelegate">
<Option serviceClass="wt.ixb.impl.step.IxbSTEPDocumentDelegate"
requestor="java.lang.Object"
selector="AP214_CUSTOMIZED " cardinality="duplicate"/>
</Service>
4. 使用 IXFormatType.setProtocol(IXFormatTypeProtocolType) 方法设置协议。
这对您有帮助吗?