question

Johnson Hu avatar image
0 Likes"
Johnson Hu asked Joerg Vogel answered

Is there any way to set viewpoint in flexscript?

I want to set specific viewpoint in flexscript. For example,when I reset the model,the viewpoint will set behind the processor.Could you help me?Thanks a lot!

FlexSim 18.0.8
viewpoint
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

You need the reference to the view of the window (viewPointer). The viewpoint is the result of the attributes of the location (x,y,z) and rotation (rx,ry,rz) nodes in the viewsettings branch of the active view of the window.

setnodenum(viewpointx(viewPointer),1.01);

You change the window view as you like to show at reset and you note the values. Then you can write the source code at a trigger.


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.