question

Ryosuke S avatar image
1 Like"
Ryosuke S asked Jason Lightfoot edited

Changing Flypath view by simulation time or On event

I understand that you can change view with Follow --> Follow Object. But could you change the view by specific simulation time or On Event? If we can, then how?

flypath_follow_test.fsm

FlexSim 20.1.3
flexsim 20.1.3flypath
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

Cliff King avatar image
1 Like"
Cliff King answered Jason Lightfoot edited

Here's one trick you can try. Save a bunch of views of your model using the standard properties window and then execute the following command in a trigger somewhere in your model (for example, an On Entry trigger, a Custom Activity of a Process flow, or a User Event at a particular time):

applicationcommand("changeperspview", "View 3", activedocumentnode());

Substitute the name of the desired view for "View 3" in the expression.



1606783019173.png (784.7 KiB)
· 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.

Ryosuke S avatar image Ryosuke S commented ·

@Cliff King Thank you for your reply. So, I suppose you can not change object to follow with On Event? Like in the beginning the object to follow is set to Operator1, but at On Entry, change the follow to Operator2.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ryosuke S commented ·

To do this you need to know which 3D view has to do the following. So for now right click in the 3D view and select designate this view as sv().

Then in the onEntry you can use:

if (objectexists(sv()))
function_s(sv(),"follow",item);


Model attached but you'll need to set sv() when you open it.flypath-follow-test_jl.fsm


2 Likes 2 ·
Ryosuke S avatar image Ryosuke S Jason Lightfoot ♦♦ commented ·

@jason.lightfoot Wow! This is great! Thank you for the solution!

0 Likes 0 ·
Show more comments