How to export Fluent msh file in linux by script in mechanical?
wanghao
Member Posts: 27
**
in Structures
Hi.
I'm trying to export fluent msh file by pyMechanical and ACT scripts.
Is there any way or api can export it in linux?
https://discuss.ansys.com/discussion/comment/3445#Comment_3445?utm_source=community-search&utm_medium=organic-search&utm_term=export+mesh+msh
I have noticed the link but it seems worked only in Windows
Tagged:
0
Comments
-
I do not have access to Linux. But based on method 2 of the referenced post, does this work on Linux?:
FilePath = r"D:\FluentMeshFromWB.msh" JScmds = '''var DS = WB.AppletList.Applet('DSApplet').App; DS.Script.doFileExport("{}");'''.format(FilePath) ExtAPI.Application.ScriptByName("jscript").ExecuteCommand(JScmds)
0 -
It works!! @Landon Mitchell Kanner
Thanks a lot!!!0