question

TEJAS G avatar image
0 Likes"
TEJAS G asked Ben Wilson commented

exception: FlexScript exception: VIEW:/nodefunctions/workspace/openworkspace

I am using Flexsim 19.1.0 ,

whenever I am opening my open I am getting this exception message :

"exception: FlexScript exception: VIEW:/nodefunctions/workspace/openworkspace"



And my model gets hang when I try to do "Open Default workplace", then I have to manually force close the model.


How to solve this issue?


FlexSim 19.1.2
error messageflexsim 19.1.2workplace
· 3
5 |100000

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

tannerp avatar image tannerp commented ·

@TEJAS G,

Do you get this exception any time you open FlexSim or only for a particular model? If it's a particular model, perhaps you could upload it so we can look at it?

Additionally, others have had similar errors in the past. You might want to review the answer from this post and try some of the potential solutions for ridding the model of the error.

0 Likes 0 ·
Marcello Rosadini avatar image Marcello Rosadini commented ·

@tanner.p We are experiencing the same issue in two models at this time. We get this error and if you try Open defaut Workspace it will crash.

I can share the models via private

0 Likes 0 ·
tannerp avatar image tannerp Marcello Rosadini commented ·

@marcello.rosadini,

I will email you and you can reply with the models so I can look at them. This may be beyond my understanding, but I'll give it a shot!

0 Likes 0 ·

1 Answer

tannerp avatar image
1 Like"
tannerp answered Ben Wilson commented

We fixed Marcello's model through email.

To solve this issue:

1) Run the code provided below in a Script window:

treenode activeViews = node("VIEW:/active");
treenode backPanel = node("VIEW:/active/MainPanel/BackPanel");
while (content(activeViews) > 1)  {
  destroyobject(last(activeViews));
}
clearcontents(backPanel);

2) Select View -> Open Default Workspace

This should fix the model and prevent it from crashing.

· 3
5 |100000

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

Aldo C3 avatar image Aldo C3 commented ·

where is the script window in flexim?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Aldo C3 commented ·

You can click on this button to open it:

or open it from the Debug menu:

0 Likes 0 ·
1613176609115.png (1.2 KiB)
1613176653590.png (23.2 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ Jason Lightfoot ♦♦ commented ·

The the Script Console does require a license. See the article FlexSim Feature Limitations by License Type.

0 Likes 0 ·