Master key generator for aster1/25/2024 ![]() The geom construction part is executed only after I quit SALOME, and, as expected, ends with the exception, because SALLOME is closed. SALOME is running, but the execution of the code after that line is not happening at all. Geompy.addToStudy(area, 'this is a square') ![]() #Initializing extra environment variables parsed from batch files: #configFileNames, extraEnv, args, unexisting = getConfigFileNames(args, checkExistence=True)ĬonfigFileNames, args, unexisting = getConfigFileNames(args, checkExistence=True)Ĭontext = salomeContext.SalomeContext(configFileNames) #I found that getConfigFileNames from salomeContextUtils returns three (not four!) values (no extraEnv returned), so I will just bypass this extraEnv Print('This is sys.path: ' + str(sys.path))įrom salomeContextUtils import getConfigFileNames Print('appliskelPath is: ' + appliskelPath) Print('launcherFile is: ' + launcherFile)ĪppliskelPath = '/home/dell/salome_meca/V2020.0.1_universal_universal/modules/KERNEL_V9_4_0/bin/salome/appliskel' salomePath = '/home/dell/salome_meca/V2020.0.1_universal_universal/modules/KERNEL_V9_4_0/bin/salome' So, I used some code from "How to write a launcher" from SALOME KERNEL documentation ( can't put the link here, sorry), and after some effort I'm able to make SALOME run.ĬurrentPath = os.path.dirname( os.path.abspath( _file_ ) ) ![]() ![]() And I want all these stages to be issued ćonsequently, one after another, in the same script I'm trying to write a Python script that does some things outside SALOME Meca (collects user-specified information, parses some input files, performs some other irrelevant opearions), then starts SALOME Meca, then, after it's ready, inputs some Python code to create geometrical objects and mesh, then saves it all into hdf file, and then closes SALOME Meca. I'm struggling with this issue for days and really hope you guys can help with any useful advice. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |