Skip to main content
1-Visitor
October 21, 2016
Question

Pass argument to custom CAD worker

  • October 21, 2016
  • 0 replies
  • 931 views

Hi all,

I am looking for a way to pass an additional argument to my custom worker. The main task that I want to achieve is to create a different output format based on user publishing params (Output Options). I uploaded an publishing rule xml containing two param-set

<param-set name="Create PDF">

      <worker name="type">pdf</worker>

  </param-set>

  <param-set name="Create X_T">

      <worker name="type">x_t</worker>

  </param-set>

  <publish on="create-representation" param-set="Create PDF"/>

  <publish on="create-representation" param-set="Create X_T"/>

Now the user has the ablity to select between the two publishing options. On the worker machine (separate windows machine with worker daemon and generic worker) I would like to somehow get the "type" worker argument and pass it to the batch, or write it to the .in file. How could I achieve this?

Thx,

Tamás