question

anon-user avatar image
0 Likes"
anon-user asked Jason Lightfoot edited

How to access 3d model views using dashboard button?

Dear FlexSim Team,

I am reaching out to you today to inquire about how to access 3D views using the dashboard button in FlexSim.

I have searched through the forum and have been unable to find clear instructions on how to do so.

Could you kindly provide me with some guidance on how to access 3D views through the dashboard button? I would greatly appreciate any information you can provide on this matter.

Thank you for your time and assistance. I look forward to hearing back from you soon.

Attaching the sample mode

Best regards,

Brijesh Kumar

FlexSim 23.0.2
3d view
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
The workspace is the view tree. You can identify the responsible code to open a 3D View from main menu icon or by list item of View main menu item.

previously it is a good idea to check if a 3D View exists and if it is currently active.
you can try to dock the created view to a tab in the view tree.

0 Likes 0 ·

1 Answer

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

This will print the open 3D views:

treenode perspviews=views().find("active>Documents/Perspective");
forobjectlayerunder(perspviews){
     treenode view=,a.find("+/~");   // +:  the value of the node,  ~: its ownerobject
     print("3DView: ",view);
}
· 2
5 |100000

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

anon-user avatar image anon-user commented ·
Hi Jason, thanks for your reply.

I am looking for the code to open a 3d View window by clicking on a button in the dashboard.

As per my understanding, the code you have given will only print the opened 3d views in the output console.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ anon-user commented ·

You open a 3D view with:

applicationcommand("perspectiveview");

If you want to switch the active 3D view docuement to a stored 3D view (listed in properties) then you can use:

applicationcommand("changeperspview", viewName, activedoc);

where the active document is the 3D view pointer found in the previous example.

0 Likes 0 ·