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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to create Valuestream with script

tcoufal
12-Amethyst

How to create Valuestream with script

Hi Guys,

I would like to achieve a following thing.

I would like to create a script wich will create a Valuestream and assign that VS to Thing from which the script is called.

I know how to create Things automatically, I dont know how to bend that code to create a Valuestreams.

Any ideas?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Tomas,

  1. Creating a ValueStream it's the same as Creating a thing, the only difference it's the base template.
  2. Assigning a ValueStream to a Thing, as easy as: me.SetValueStream({ name: "value_stream_name" });

Best Regards.

Carles.

View solution in original post

2 REPLIES 2

Hi Tomas,

  1. Creating a ValueStream it's the same as Creating a thing, the only difference it's the base template.
  2. Assigning a ValueStream to a Thing, as easy as: me.SetValueStream({ name: "value_stream_name" });

Best Regards.

Carles.

tcoufal
12-Amethyst
(To:CarlesColl)

Sorry should have try it on my own. It was easier than I anticipated.

Thanks a lot.

Top Tags