ms-structural / ms-structural/femdesign-api

Connect to an open instance of FEM-Design wih pipe

Open
#1,129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

python
Dominant language
C#
Stars
51
Forks
29
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the FemDesignConnection entry point and the pipe-opening logic behind the Python usage example. Compare that flow with the proposed ConnectToOpenPipe(pipe_name) entry point and verify the existing Open, RunAnalysis, and GenerateListTables workflow against an already-open FEM-Design instance. Done means the connection reuses the open pipe without starting another instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.