特殊な管理 > サポートされるビジュアリゼーションとパブリッシング > Creo® Parametric and CATIA® V5 Bi-Directional Data Conversion for HDIC Configuration > HDIC Conversion and Additional Files
  
HDIC Conversion and Additional Files
Although PTC supports both HDIC conversion and the generation of additional file types during publishing, additional file types generation is not supported at the same time as HDIC conversion. To prevent unexpected results during HDIC conversion, the Publish Rules must be amended to disallow the generation of additional file types.
The following Publish Rules content provides an example of code that might be added to support the above limitation. This example uses “Enable HDIC” as the name of a Boolean attribute that is set on the source EPMDocument or CAD Document. (The attribute in the example was defined earlier in the preference in the "Setting Up the Creo Worker for HDIC Conversion" section.) This attribute will be evaluated by the CAD publisher to ensure that additional files generation is not enabled during HDIC conversion.
<?xml version="1.0" encoding="UTF-8"?>

<rules xmlns="http://www.ptc.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ptc.com PublishRulesSchema.xsd"
evaluate-rules-on-republish="true">

<authoring-application name="PROE">

<additional-files name="proe2dxf_iges_step_ALL">
<file display-label="STEP" type="step" default="true" output-prefix="step" />
<file display-label="IGES" type="iges" default="true" output-prefix="iges" />
<file display-label="DXF" type="dxf" default="false" output-prefix="dxf" />
</additional-files>

<condition name="is_released_part_but_not_HDIC">
<and>
<attribute name="epmdoc_lifeCycleName" value="Basic"/>
<attribute name="epmdoc_lifeCycleState" value="Released"/>
<!-- Assume that the HDIC triggering global attribute is EnableHDIC.
This is the attribute value defined in the Creo Parametric to
CATIA V5 CAD Conversion Attribute preference in the "Setting Up
the Creo Worker for HDIC Conversion" section. -->
<not>
<attribute name="epmdoc_EnableHDIC" value="[T|t][R|r][U|u][E|e]"/>
</not>
</and>
</condition>

<condition name="is_HDIC_enabled">
<attribute name="epmdoc_EnableHDIC" value="[T|t][R|r][U|u][E|e]"/>
</condition>

<if condition="is_released_part_but_not_HDIC">
<publish on="checkin" additional-files="proe2dxf_iges_step_ALL" />
<publish on="create-representation" display-label="Publish + STEP/IGES/DXF"
additional-files="proe2dxf_iges_step_ALL" />
<publish on="schedule" additional-files="proe2dxf_iges_step_ALL" />
</if>

<if condition="is_HDIC_enabled">
<publish on="checkin" />
<publish on="create-representation" />
<publish on="schedule" />
</if>
</authoring-application>

</rules>