cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Enable Publish Rule for CAD Drawings

srammohan
1-Newbie

Enable Publish Rule for CAD Drawings

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

1 ACCEPTED SOLUTION

Accepted Solutions
TomU
23-Emerald IV
(To:srammohan)

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>

View solution in original post

5 REPLIES 5
TomU
23-Emerald IV
(To:srammohan)

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>

srammohan
1-Newbie
(To:TomU)

Thanks Tom . It worked Perfect.

srammohan
1-Newbie
(To:TomU)

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

TomU
23-Emerald IV
(To:srammohan)

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>

srammohan
1-Newbie
(To:TomU)

Thanks once again It worked for me.

Regards,

Sri

Top Tags