question

Pert P avatar image
0 Likes"
Pert P asked Jeanette F commented

Can I export the detail of model?

When I have node or objective. I want to export that each node connect with which objective or each objective connect with where node. example


Queue1and2 connect with node 1 : Export data wanna see NN1, Queue 1, Queue2

FlexSim 22.1.2
network node
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Pert P, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Pert P, you can do that with an Object Property Table. In the Toolbox, create an Object Property Table; this will include all objects in your model. Then you can edit the columns that you see and copy the table into an excel spreadsheet (I don't think there's a built-in export yet).

1655744256270.png

example.fsm



You can also do it with FlexScript if you want:

print("Starting script...");
treenode model = model();
print("Model:", model);
for (int i = 3; i < model.subnodes.length+1; i++) {
treenode child = model.subnodes[i];
string childName = child.name.slice(1);
print("child " + string.fromNum(i) + ":", childName);
treenode childConnections = Model.find(childName).find(">connections");
for (int j = 1; j < childConnections.subnodes.length+1; j++) {
treenode connectionType = childConnections.find(childConnections.subnodes[j].name);
string type = "";
switch (j) {
case 1: {
type = "in";
break;
}
case 2: {
type = "out";
break;
}
case 3: {
type = "center";
break;
}
default: {
type = "BROKE";
break;
}
}
print("type:", type, "\tsize:", connectionType.subnodes.length);
for (int k = 1; k < connectionType.subnodes.length+1; k++) {
treenode connection = connectionType.subnodes[k];
print("", connection.value);
}
}
}

Result:

1655744681987.png

(I recommend using the built-in Property Table though)


1655744681987.png (25.0 KiB)
example.fsm (28.9 KiB)
1655744648287.png (162.6 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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