How to access 3d model views using dashboard button?

How to access 3d model views using dashboard button?

__ANON_USER__1
Not applicable
25 Views
4 Replies
Message 1 of 5

How to access 3d model views using dashboard button?

__ANON_USER__1
Not applicable

[ FlexSim 23.0.2 ]

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

0 Likes
Accepted solutions (1)
26 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
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
Message 3 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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);
}
Message 4 of 5

__ANON_USER__1
Not applicable
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
Message 5 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

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