question

BenJoaquin Gouverneur avatar image
2 Likes"
BenJoaquin Gouverneur asked Phil BoBo edited

Unable to create windows.fsx file following documentation

Hey folks,

I'm trying to follow the instructions here for using FlexSim XML (.fsx format) to save a model. I've successfully used the "split-points" file map method but haven't been successful using the "single-node" to save off the "/Tools/active" node. I think that saving the attached .fsx model in FlexSim should create a new "windows.fsx" file but that isn't happening on my system. Can someone help me understand why this isn't working?

In trying to debug this I noticed that the "active" node doesn't appear to be a child of the "Tools" node so perhaps it isn't working since "/Tools/active" isn't a valid path. In fact, all of the objects in the "View" view under "Tree Navigation" don't seem to exist as children of the "Main" tree. Furthermore, I don't see any of those nodes in the model .fsx file which I expect to contain all of the details of the model. Does "active" and the other "View" objects exist in a tree separate from "Main"?

I talked with Sam at FlexSim today but we weren't able to readily identify or resolve the issue. I've attached the model.fsx, fileMap.ffm and distributedfiles folder I created while following the tutorial. creating-a-windows-fsx-file.zip

Thanks.

Choose One
xml
· 4
5 |100000

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

1 Answer

Sam Stubbs avatar image
3 Likes"
Sam Stubbs answered Phil BoBo commented

So after we spoke on the phone, we went through the documentation and realized the XML code given for the ffm file is out of date. The structure of the system has shifted, and "active" is no longer part of that structure, instead have it write to the "Workspace" path.

The updated code will look like this:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <flexsim-file-map version="1">
  3. <map-node path="/Tools/Workspace" file="distributedfiles\windows.fsx" file-map-method="single-node"/>
  4. </flexsim-file-map>

We will need to update this in the documentation.

(Also just as a note: When creating the ffm file, that Windows by default hides file extensions. So if you are making a file in Notepad, then it might append the .txt format on the end of your file. So just double check to make sure that the file format is in fact a .ffm file.)

· 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.