question

j08j avatar image
0 Likes"
j08j asked j08j commented

How to add Task Sequences List by flexscript?

I want to add a task sequence list and modify it through flexscript. How should I do it?

1. Add a global list.

screenshot-2024-04-12-at-121828-pm.png

2. Modify the original settings (above) to the new settings (below).screenshot-2024-04-12-at-121725-pm.png

screenshot-2024-04-12-at-121739-pm.png

Thanks in Advance!

FlexSim 24.0.2
flexscripttask sequenceglobal list
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Arun Kr avatar image
2 Likes"
Arun Kr answered j08j commented
treenode list = Tools.create("List","TaskSequence");// Tools API
treenode focus = list;
string fieldTypeName = "ExpressionField";
treenode newField = function_s(focus, "addField", fieldTypeName);
newField.name = "bound";
treenode Expression = newField.find("expression");
string Code = "/**Custom Code*/ Variant value = param(1);\
   Variant puller = param(2);\
   treenode entry = param(3);\
  double pushTime = param(4);\
   return 5;";
   Expression.value = Code;
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

j08j avatar image j08j commented ·
Thanks for your help!
0 Likes 0 ·