Webserver

Webserver

leelichou1112
Not applicable
504 Views
9 Replies
Message 1 of 10

Webserver

leelichou1112
Not applicable

[ FlexSim 20.0.10 ]

為什麼我不能選擇任何東西

1683691086551.png

0 Likes
Accepted solutions (1)
505 Views
9 Replies
Replies (9)
Message 2 of 10

Ben_WilsonADSK
Community Manager
Community Manager
Accepted solution

Hi @立洲 ,

It looks like you need to provide a valid path to your FlexSim model directory in order to choose a model file to open.

See the Webserver documentation about Configuration:

https://docs.flexsim.com/en/Reference/DeveloperAdvancedUser/Webserver/Webserver.html#configuration

Make sure that your paths are appropriate. Sometimes you need to change from using a shortcut like %DOCUMENTS% to using your model directory's full and complete path, for example like this:

C:\Users\joe.user\Documents\FlexSim 2023 Projects

0 Likes
Message 3 of 10

Jeanette_Fullmer
Community Manager
Community Manager

Hi @立洲 , was Ben Wilson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 4 of 10

leelichou1112
Not applicable

能不能給個視頻或者執行方法的步驟,我電腦上執行不了

via Google Translate:

Can you give a video or the steps to execute the method? I can’t execute it on my computer.

0 Likes
Message 5 of 10

leelichou1112
Not applicable

What do these errors mean when I install

0 Likes
Message 6 of 10

Ben_WilsonADSK
Community Manager
Community Manager

@立洲

FlexSim's Webserver has a configuration file which by default can be found in its installation directory, here:

C:\Program Files (x86)\FlexSim Web Server\flexsim webserver configuration.txt

You need to modify that file to change paths so that they will be accurate for the location of folders on your computer. In particular, the final error message in your video indicates that the following paths need to be configured properly:

  • Flexsim Program Directory
  • Model Directory

These are highlighted in this screenshot of the configuration file:

1684418059145.png

In the screenshot I've entered the default program directory for FlexSim 2020 (the version you've indicated on your question above), and the directory to my personal FlexSim 2020 Projects folder. You'll need to enter similar paths that are specific to your computer.

Once you've modified the configuration.txt and saved the file, try starting the FlexSim Webserver again.

0 Likes
Message 7 of 10

Ben_WilsonADSK
Community Manager
Community Manager

@立洲

My guess is that you already have a different version of node.js installed, and FlexSim Webserver's node.js installation is not compatible with that version.

You can find similar errors on this community by checking some of the results found by searching "node.js" on this community.

In particular, @Jacob Gillespie gives some good advice in his answer here about manually installing the node modules. We give some other advice in other answers, including removing all versions of node.js before installing FlexSim Webserver. Try the suggestions you find in those other answers. Hopefully one will lead you to a solution.

By way of example, a normal install of the FlexSim Webserver looks like this:

animation.gif

"Unable to locate..." errors like the kind you see at the end of this .gif are resolved by setting the correct paths in the Webserver's configuration.txt file, as described in my previous comment.

0 Likes
Message 8 of 10

Jacob_Gillespie
Autodesk
Autodesk

@立洲

npm is trying to install node-sspi. It has an optional dependancy named dtrace-provider which has a dependancy called node-gyp. Aparently node-gyp needs python in order to build. However since dtrace-provider is an optional dependancy it just skips it. So this error is harmless.

1684430957406.png

Message 9 of 10

leelichou1112
Not applicable

I successfully installed and opened the web version of the model, but I found a problem, why the Web Server Model does not display the dashboard data.

I use the latest version of Web Server

1684457409813.png

1684457584328.png



0 Likes
Message 10 of 10

Ben_WilsonADSK
Community Manager
Community Manager

Hi @立洲 ,

The top question about the webserver not showing models is answered, so I will accept the answer and close this question.

Your latest follow-up question is on a new topic, so I've posted it as its own new question, here:

https://answers.flexsim.com/questions/142244/webserver-model-does-not-display-dashboard-data.html

Please watch that new question and add comments there if you have more to add on that topic.

0 Likes