Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to an open instance of FEM-Design wih pipe #1129

Open
1 task
Marco-Pellegrino opened this issue Nov 27, 2024 · 0 comments
Open
1 task

Connect to an open instance of FEM-Design wih pipe #1129

Marco-Pellegrino opened this issue Nov 27, 2024 · 0 comments

Comments

@Marco-Pellegrino
Copy link
Contributor

Marco-Pellegrino commented Nov 27, 2024

User says:
When the analysis is done, I have an excel spreadsheet where I can check all the stringers, lintels, stability, foundation, etc. If something breaks, I correct the model and run again.
Now my script opens the model, runs the analysis and copy a batch to clipboard. But it’s a bit annoying to close the model every time I have done some corrections.

The user is working with the python package which require to open a pipe and then connect to it.
We should find a way to connect to a pipe without opening a new one

I have tried starting from this but then I get stuck
image

NOW

pipe = FemDesignConnection(minimized= False)
try:
    pipe.Open(r"simple_beam.str")
    static_analysis = Analysis.StaticAnalysis()
    pipe.RunAnalysis(static_analysis)
    pipe.GenerateListTables(bsc_file=r"bsc\quantity-estimation-steel.bsc",
                            csv_file=r"output\quantity-estimation-steel.csv")
except Exception as err:
    pipe.KillProgramIfExists()
    raise err

what the user would like

pipe = ConnectToOpenPipe(pipe_name)
try:
    pipe.Open(r"simple_beam.str")
    static_analysis = Analysis.StaticAnalysis()
    pipe.RunAnalysis(static_analysis)
    pipe.GenerateListTables(bsc_file=r"bsc\quantity-estimation-steel.bsc",
                            csv_file=r"output\quantity-estimation-steel.csv")
except Exception as err:
    pipe.KillProgramIfExists()
    raise err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant