Hey @David Wang, for the first question, I don't know what you mean when you say that FlexSim crashes when you run the script described in the linked post. I just downloaded the two files talked about in the post (a model and a .py file) and ran them. I had to change the script file name in the "generateData" function to lowercase because that's what it downloaded as, but otherwise it ran fine - no crashing. Do you have any steps to reproduce the crash you're experiencing?

If you built the FlexSimPy module correctly from the module folder of your Module Development version of FlexSim, then your PyConnector310.dll should have a newer modified date than the others.

That will help you identify if you (1) actually build the FlexSimPy.sln and (2) if it worked correctly.
Are you sure your machine is using Python 3.10? You can open a command prompt and type the following command to get a list of python versions installed on your machine.
py -0

For the second issue, the error you get is telling you that the python file cannot find the module specified. The module was built and output into the "FlexSimPy\out\Rel_3_10" file path. There should be 4 files there:

You'll want the FlexSimPy.pyd file which is like a .dll file so your python code can find the functions contained in FlexSimPy. Copy it over into the same directory as your TestFlexSimPy.py and it should find it.
If you get a "Fatal Python error" due to GIL complications, follow the fix in this answer.