File open error occurred

File open error occurred

kim_d
Not applicable
57 Views
4 Replies
Message 1 of 5

File open error occurred

kim_d
Not applicable

[ FlexSim 20.0.2 ]

Modeling does not work with messages in the system console windowsongpa.fsm

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

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

We were able to get this model to open again without errors: songpa-fixed.fsm

The model had a lot of things configured incorrectly in the tree. Was this model built with a script?



Matthew Gillespie
FlexSim Software Developer

Message 3 of 5

kim_d
Not applicable

I can't use script.

I did the work in the usual way.

During the operation, the screen suddenly stopped and did not work.

0 Likes
Message 4 of 5

support5CRPZ
Advocate
Advocate

Dear @Matthew Gillespie.

Thank you for answer.

I and my customer want to know how to fix the problem model. I met the system console error message list when I opened the question model.

He said 'he leaved some minutes from his model during working and when he came back to his seat the model stopped, and then he could not do anything'.

We want to know how to fix it in detail.

email ID : support@flexsim.co.kr & support@simflex.co.kr
0 Likes
Message 5 of 5

Matthew_Gillespie
Autodesk
Autodesk

We ran a script like this on the model:

treenode system = Model.find("ConveyorSystem");

getvarnode(system, "conveyors").subnodes.clear();
getvarnode(system, "conveyorPoints").subnodes.clear();

forobjecttreeunder(model()) {
	treenode obj = a;
	if(!isclasstype(obj, "Conveyor::Conveyor"))
		continue;
		
	treenode convSystem = getvarnode(obj, "system").first;
	if(convSystem && !convSystem.value)
		convSystem.destroy();
		
	treenode points = getvarnode(obj, "conveyorPoints");
	for(int i = points.subnodes.length; i > 0; i--) {
		treenode point = points.subnodes;
		if(isclasstype(point, "Conveyor::ConveyorTransfer"))
            		point.destroy();
	}
}

treenode broken = Model.find("BasicFR877");
if(broken)
	broken.destroy();
	
resetmodel();

forobjecttreeunder(model()) {
	treenode obj = a;
	if(!isclasstype(obj, "Conveyor::Conveyor"))
		continue;
	function_s(obj, "finalizeSpatialChanges");	
}


Matthew Gillespie
FlexSim Software Developer

0 Likes