Skip to main content
10-Marble
March 3, 2023
Solved

Creating rule-based publishing jobs for lots of items

  • March 3, 2023
  • 2 replies
  • 1466 views

Hello,

we are thinking about activating positioning assemblies. For that, we need to have representations for all items in our system.

Anyhow, we have lots of items  without a representation (couple of thousands), especially vendor components.

Is there a simple way of creating (rule-based) publishing jobs for these items?

 

Best regards

Martin

2 replies

10-Marble
March 3, 2023

This goes definitely in the right direction but is still very general. The approach described above will create representations for all CAD data (+pre-defined filter) without any chance of having prio-settings, right? Like doing vendorcomponents first. Right?

 

But we need to discuss it. At last we need representations for all items.

23-Emerald IV
March 3, 2023

Depends how your data is segmented.  Jobs can be started from "Site, Organizations, Projects, Products, or Libraries", and the job only affects those objects from where the job was started.  If vendor components are in a specific product or library, you could just choose to create a job for that one context.

23-Emerald IV
March 3, 2023

Another handy tool is the command line utility PublishUtil which will publish a list of objects from a CSV file.  It's pretty easy to query the database and get a list of specific objects to publish (or republish).  Add their idA2A2 values to a CSV and then feed them into this utility.  (No server restart is required to install this utility.)

 

https://www.ptc.com/en/support/article/CS211115

 

Focus on the PublishEPMDocWithCSVFile filter.

10-Marble
March 3, 2023

Thanks, I'll have a deeper look into this next week!