3D model is not assembled, but I intend to pass the values (parameters) from python into Flexsim. How do I do this?
Initially, I did the following test:
where is my error? What should I do?
3D model is not assembled, but I intend to pass the values (parameters) from python into Flexsim. How do I do this?
Initially, I did the following test:
where is my error? What should I do?
Hi @Wesley, was Patricia_brenny R'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 comment back to reopen your question.
@Wesley, be a liitle more patient. It is hard, I know. You have asked an hour ago a question "How to pass one parameter..". Now you ask "how to pass many parameters..". Here are existing some recommendations to use this answers site. And one hint is not to ask many questions for one topic. Now the question is, what do you want to get an answer for first.
I need some more background information to optimize this reply:
- Have you followed the steps to set up the FlexSimPy library correctly?
- What model are you running this script with? Could you send the model and the code to help me understand better?
Steps to Ensure Correct Setup and Parameter Passing
0. (IMPORTANT) Follow the build tutorial provided by FlexSimPy Documentation to correctly allow FlexSimPy to work on your flexsim distribution https://github.com/flexsim/FlexSimPy/blob/master/README.md
1. Ensure that FlexSimPy is installed correctly on python and the syntax is correct in your import
2. Define the parameters you intend to use in your FlexSim model before running your Python script.
3. Ensure these parameters are modifiable and can be accessed.
4. Follow the correct signature for function calls.
Important Points to Ensure
- Ensure all paths are correct before initializing your controller.
- Ensure the parameter names used in your Python script match those in the FlexSim model exactly.
- Make sure the FlexSim model is in a state where it can accept parameter changes (not running or paused if it should be stopped).
- Verify that the controller object is correctly initialized and connected to FlexSim.
By following these steps and ensuring the details are correct, you should be able to pass parameters from Python to FlexSim effectively. Please provide more details about your model and script if you encounter specific issues.
12 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