Have you seen this error before?
Have you seen this error before?
This is a known problem that is sometimes caused by undoing (Ctrl-Z) to restore deleted path nodes. The issue has been fixed in the next release (v5.0.14).
To fix the problem and stop the errors in a model in the current version:
Paste the following script into a script editor and run it:
for(int i = 2; i <= content(model); i++) { treenode nn = rank(model, i); if(getobjecttype(nn) != OBJECT_Path) continue; treenode connectionsOut = connectionsout(nn); for(int j = 1; j <= content(connectionsOut); j++) { treenode conn = rank(connectionsOut, j); treenode splines = node("spline", conn); if(content(splines)) { treenode firstSpline = first(splines); treenode pointer = first(connectionsout(firstSpline)); if(!objectexists(node("+", pointer))) nodepoint(pointer, first(connectionsin(last(splines)))); } } }
I got this bug on a model in Flexsim 7.5.4..I copied and pasted the script provided but the error is continuing to show up, every time I even move the mouse. It will not let me delete nodes, either. What can I do to fix this?
The problem is that this line of code is HC specific:
if(getobjecttype(nn) != OBJECT_Path)
and needs to be switched to this:
if(!isclasstype(nn, "NetworkNode"))
This modified script should work in either FlexSim 7.5 or HC 5:
for(int i = 2; i <= content(model); i++) { treenode nn = rank(model, i); if(!isclasstype(nn, "NetworkNode")) continue; treenode connectionsOut = connectionsout(nn); for(int j = 1; j <= content(connectionsOut); j++) { treenode conn = rank(connectionsOut, j); treenode splines = node("spline", conn); if(content(splines)) { treenode firstSpline = first(splines); treenode pointer = first(connectionsout(firstSpline)); if(!objectexists(node("+", pointer))) nodepoint(pointer, first(connectionsin(last(splines)))); } } }
4 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved