CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > FloEFD, FloWorks & FloTHERM

How to launch a sldasm file in foltherm using commandprompt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2022, 03:57
Default How to launch a sldasm file in foltherm using commandprompt
  #1
New Member
 
Naga KOTA
Join Date: Aug 2022
Posts: 1
Rep Power: 0
naga.kota@ansys.com is on a distinguished road
I am trying to parse the flotherm and sldasm file as arguments to command line and as well as i tried using the vb script to launch the flotherm to execute the file.

i tried with this code

Sub main()
Dim projName, filename, objFSO, prj
projName = WScript.Arguments.Item(0)
filename=TRIM(Split(projName,".")(0))
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set logger = objFSO.OpenTextFile(filename+".log", 2, True)
Dim swApp
Set swApp = CreateObject("SldWorks.Application")
logger.WriteLine("Getting project name..."+projName)
swApp.Visible = True
Set proj = swApp.OpenFile(objFSO.GetAbsolutePathName(".")+""+ projName)
'Check Aplication Name was not empty or Not Null
If proj.GetApplicationName<>"" Or proj.GetApplicationName<>Null Then
logger.WriteLine("SW Launched Succesfully")
End If
swApp.ExitApp
End Sub

in the command line i am trying like this
D:\sampleFiles >c:\Windows\System32\wscript.exe "C:\Users\Admin\Desktop\FloTherm\flotherm.vbs" cylinder2d.sldasm

Could you please help with more details to solve.

Last edited by naga.kota@ansys.com; August 19, 2022 at 11:15.
naga.kota@ansys.com is offline   Reply With Quote

Reply

Tags
2021, api script, flothermxt


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 00:26.