question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Kavika F commented

How to Hide or Unhide Staff 3D Object Based on Schedule?

Hi Team,

I want to hide the 3D staff object during non-working hours. Is there any way to do it?

HowToHideOrUnhideStaff.fsm

Thank you!


FlexSim 21.0.10
hcstaffhide
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Ankur A3, was Jeanette 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

Jeanette F avatar image
0 Likes"
Jeanette F answered Jason Lightfoot commented

Hello @Ankur A3,

switch_hideshape(StaffMember,0);// 0 to show and 1 to hide

You will add in code in 3 places to hide and show the staff when needed. The first two places are the in the time table function tab.

1654712600212.png

and the third is a model reset trigger

1654712581074.png

howtohideorunhidestaff_autosave.fsm



· 4
5 |100000

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

Ankur A3 avatar image Ankur A3 commented ·
Hi @Jeanette F,

Thank you for your answer!

I have observed this code is not working if I have different start date for timetable and model run time. Does it need to to same?

Thank you!

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Ankur A3 commented ·
Could you attach your model that is having the issue?
0 Likes 0 ·
Ankur A3 avatar image Ankur A3 Jeanette F ♦♦ commented ·

Sure @Jeanette F

I am attaching model where timetable date is 8/06/2022 while model started running on 06/06/2022.

NotWorkingInDateMismatch.fsm

Thank you!

0 Likes 0 ·
Show more comments