Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi All,
I've created a Post Publishing rule to generate a seperate WTDocument where the content is the representation of the EPMDocument. When a drawing file gets published a WTDocument is created with PDF as content. When a 3-D model is published, a WTDocument is created with .OL file as a content.
I'm trying to create a Publishing Rule where a WTDocument is created only for the drawing file. Any suggestions would be helpful.
Thanks,
Kiran Lakshminarayanan
Which Windchill version are you using?
Version-independent, try something like this:
<authoring-application name="PROE">
<param-set name="MySet">
<post-publish ************<=" p=">
*****
*****
</param-set>
<epm-iba iba="”docType”" value="Drawing">
<publish on="checkin" param-set="MySet"/">
<publish on="create-representation" param-set="MySet"/">
<publish on="schedule" param-set="MySet"/">
<publish on="manual-post" param-set="MySet"/">
</epm-iba>
</authoring-application>
Note: docType attribute is exposed as "Document Category" in the Windchill UI on the document details page and for drawings it's value is "Drawing" (Format for formats, Assembly - Other for asms, CAD Part - Other for parts etc.)
Also, starting with Windchill 10.1 publishing rules were enhanced and allow greater flexibility - check the Windchill 10.1 Publish Rules Enhancements in Help Center.
In your case <attribute name="epmdoc_CADName" regex=".*\.drw"/> could be used.
Yep. This seem to only work for IBA attributes. 😞
Adding an IBA attribute to drawings should work, then. If post-publishing is an important part of the business process, this could be worth it. Or you could already have IBA attributes in drawings - great, then. Just make sure one of them is mandatory and is always designated.
Enabling manual post-publishing could possibly be an option too.
Other than that, I don't see a feasible OOTB way to differentiate drawings and cad parts when post-publishing.