CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

How to get the absolute path of the currently opened SIM file with a Java macro

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2024, 03:59
Post How to get the absolute path of the currently opened SIM file with a Java macro
  #1
New Member
 
miley maruyama
Join Date: Jan 2024
Location: Japan
Posts: 2
Rep Power: 0
miley1231 is on a distinguished road
I know this is a very elementary question, but I can't find a way...
Please someone help me with my stupidity.

I was able to use "resolvePath()" to get the path where the macro is located, but I am unable to get the path of the open sim file.

Thank you in advance.
miley1231 is offline   Reply With Quote

Old   August 8, 2024, 18:24
Default
  #2
f-w
Senior Member
 
f-w's Avatar
 
Join Date: Apr 2009
Posts: 159
Rep Power: 17
f-w is on a distinguished road
simulation_0.getSessionDir()

For additional details, see:
https://support.sw.siemens.com/en-US...00033481_EN_US
f-w is offline   Reply With Quote

Old   August 20, 2024, 23:11
Default
  #3
New Member
 
miley maruyama
Join Date: Jan 2024
Location: Japan
Posts: 2
Rep Power: 0
miley1231 is on a distinguished road
Thank you for your help!
You have helped me achieve my goals.

You really helped me.
miley1231 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 03:52
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 19:01.