Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Dear User,
I have enabled Publish Rule to generate additional file formats . But I need this only for CAD Drawing and not for CAD Part or WTDocuments.
Can you pls share you expertise on achieving this feature.
Regards,
Sriram Rammohan
Solved! Go to Solution.
Assuming you're using one of the later versions of Windchill, you need to create a condition in your publish rules based on document type.
<condition name="CAD_Drawing">
<attribute name="epmdoc_docType" value="Drawing"/>
</condition>
<condition name="CAD_Part">
<attribute name="epmdoc_docType" value="CAD Part"/>
</condition>
<condition name="CAD_Assembly">
<attribute name="epmdoc_docType" value="Assembly"/>
</condition>
<authoring-application name="PROE">
<if condition="CAD_Drawing">
...do stuff
</if>
<if condition="CAD_Part">
...do stuff
</if>
<if condition="CAD_Assembly">
...do stuff
</if>
</authoring-application>
Assuming you're using one of the later versions of Windchill, you need to create a condition in your publish rules based on document type.
<condition name="CAD_Drawing">
<attribute name="epmdoc_docType" value="Drawing"/>
</condition>
<condition name="CAD_Part">
<attribute name="epmdoc_docType" value="CAD Part"/>
</condition>
<condition name="CAD_Assembly">
<attribute name="epmdoc_docType" value="Assembly"/>
</condition>
<authoring-application name="PROE">
<if condition="CAD_Drawing">
...do stuff
</if>
<if condition="CAD_Part">
...do stuff
</if>
<if condition="CAD_Assembly">
...do stuff
</if>
</authoring-application>
Thanks Tom . It worked Perfect.
Hi Tom,
I had configured the pub rule for Drawing and left it blank for CAD part and asm . Surprisingly when I try to create a representation for CAD Part , it fails with the below message.
"Data marked not to be published or not published due to filter.No publishing will take place."
But I would expect it to publish without the formats defiend for CAD Drawing. Can your share any leads on this.
Regards,
Sri
The rules use fall through matching. The first rule that matches is used. If none of the rules match, then you still have to give it something at the end to do.
<condition name="CAD_Drawing">
<attribute name="epmdoc_docType" value="Drawing"/>
</condition>
<authoring-application name="PROE">
<if condition="CAD_Drawing">
<!-- Drawing Only -->
<publish on="create-representation" display-label="Manual Publish - Drawing" />
<publish on="checkin" display-label="Check-in Publish - Drawing" />
<publish on="schedule" display-label="Scheduled Publish - Drawing" />
<!-- Publish when triggered by "Set State" or a Workflow Expression Robot. See CS158347 -->
<publish on="unknown-source" display-label="Workflow Publish - Drawing" />
</if>
<!-- All other CAD object types -->
<publish on="create-representation" display-label="Manual Publish" />
<publish on="checkin" display-label="Check-in Publish" />
<publish on="schedule" display-label="Scheduled Publish" />
<!-- Publish when triggered by "Set State" or a Workflow Expression Robot. See CS158347 -->
<publish on="unknown-source" display-label="Workflow Publish" />
</authoring-application>
Thanks once again It worked for me.
Regards,
Sri