question

Manish C avatar image
0 Likes"
Manish C asked Connor A commented

Showing stats (in running model) in 3d area above or below the object.

I want that those stats shown in dashboard to be shown in 3d area itself.

i.e. we can see simply clicking on 3d object certain stats e.g. average stay time, in and out, i want more of them in dynamic time without clicking on the object....

FlexSim 21.2.2
make flexsim 3d and 2d model
· 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.

Connor A avatar image Connor A commented ·

Hi @Manish C, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

Some stats (output, states) can be shown by changing the "Name Style" option to "Show Names and Stats".

1636989374458.png

To display other values you can add "Text"-objects to the model and configure them to show an object's statistics.

1636989313470.png1636989352502.png

StatsInModel.fsm


1636989313470.png (8.9 KiB)
1636989352502.png (7.2 KiB)
1636989374458.png (10.8 KiB)
statsinmodel.fsm (27.4 KiB)
· 3
5 |100000

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

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

You can also use the drawflattext() command in the object's On Draw trigger to customize what is drawn in the Names and Stats bubble to show whatever you want without clicking on the object.

if(!param(2)) {
    double boxWidth = 130;
    double boxHeight = 50;
    setdrawnamefunction(boxWidth, boxHeight, c, param(1), 1);
} else {
    fglTranslate(-55, -15, 0);
    drawflattext(current.name);
    fglTranslate(0, -15, 0);
    drawflattext("Input: " + current.stats.input.value);
    fglTranslate(0, -15, 0);
    drawflattext("Avg Content: " + string.fromNum(current.stats.content.average, 2));
}

1636992893955.png

statsinmodel_1.fsm

2 Likes 2 ·
1636992893955.png (339.0 KiB)
Manish C avatar image Manish C commented ·
Surprisingly i am not able to find this "view settings/name style"?

pls help

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Manish C commented ·

It appears in the properties window, when the 3d view is active but no object is selected. You have to expand the "View Style" section to see the option.

1637152678066.png

If you closed the properties bar on the right, you can reopen it from the top bar.

1637152768488.png

0 Likes 0 ·
1637152678066.png (36.2 KiB)
1637152768488.png (33.3 KiB)

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.