How to exchange geometry in Glue operation?

Hi. I need help exchanging the geometry in glue operation. I made a model outside Salome, imported a geometry, glued free faces and added all the required groups to Glue_1 entity. Now I spot a mistake I made. So I changed the model outside of Salome and reloaded the step file from disk. Since all the groups are connected to Glue_1 and God help don’t want to recreate all, I’d like to replace geometry on which Glue_1 is based.

Is there a way to do that?

Try creating a Python dump file first, then modify the script to implement any changes. You might need to do a bit of debugging, but it’ll be much easier than starting from scratch.

N469

Unfortunately as a mechanical engineer I haven’t acquired the skill of coding at all. But it might have to change in the future. It seems that Python is inevitable when it comes to FEA in Salome/Code_Aster.

in the interface in geom you can not, in shaper you can, not sure how the following of the tree will work. but yeah most of us, do some shitty work on the gui and then do everything on python.

Are you using Salome/C_A in an industry, at university or for fun? If I may ask

Well, the problem with shaper is that there are many shaper results when you go back and forth between saper and mesh modules. Sometimes I have to create mesh from scratch, because the shaper result name has changed, or vertexes are in some other results etc. I find Geom much more stable, but much more limited at the same time.

it is normal; it is associated with another geoemtry. if you say the edge1 of geom1 and then change to geom2 is edge1 it going to be the same edge? does it even exist?
university and industry.

Most of the time I’m designing “stuff”. When I have to check something in FEA I create a proper model in CAD and export it to step. If something needs to be corrected in the design I correct it in CAD, correct the model and export it to step under the same name as before. Then I reread file in Salome and may continue. The problem shows when I have to add an operation in Salome to the model I imported. Like Glue in the example above. Then I may reread the step, but the changes done in Geom don’t propagate. …and I haven’t found a good way of working with Salome, when the model is changing. Maybe you have a workaround to that?

for your use case, python

Well, it is the same most of the time. I’m not losing groups when I reread the file. Only when an operation is included, then we have the situation as above.

but Python in Shaper or Geom?

in geom or in shaper, what you are doing in salome is a repetitive task so a script is a script. check also YACS could help.

as the last time, this would require some training… I really need to find someone.

Could you tell me how much time you had to sacrifice to learn to use Python on the level high enough to confidently work with Salome?

One last remark. Using Python to do some obvious (?) work in Salome is like buying a cow to drink a glass of milk.

Hello,

I might be able to help you.

Send me a confirmation to anirudhnehra@gmail.com if you are interested.

Although I’m not in good health.

Regards

Anirudh Nehra