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

Help with Macros. Help needed. Thanks.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2013, 07:49
Default Help with Macros. Help needed. Thanks.
  #1
New Member
 
Join Date: May 2013
Posts: 12
Rep Power: 12
§$§eth is on a distinguished road
Hi,

can please sombody help me with this?


How can i define that the macro should import from/save to a relative path?

for example
ImportCadFileFeature importCadFileFeature_0 =
cadModel_0.importCadFile(resolvePath("E:\\Bachelor arbeit\\Makro\\Geometrie\\3D mit Ausguss\\Beh\u00E4lter_mitT\u00FClle.x_t"), true);

depending on the workstation i use the correct path changes for example
D:\\Bachelorarbeit\\Makro....
F:\\Bachelorarbeit\\Makro....
etc..

what would be the correct command so that star cmm+ imports the cad from a relative path?

thanks
§$§eth is offline   Reply With Quote

Old   July 15, 2013, 13:15
Default
  #2
Member
 
Paul Hancock
Join Date: Mar 2009
Location: Bellingham, WA
Posts: 31
Rep Power: 17
Paulh is on a distinguished road
I'm definitely not a great java guy, but in linux I create a string that represents the fully qualified path of where ccm+ was started up:

String tempDir = new File(".").getAbsolutePath();

I'll then do some string manipulation to get a String that represents where I want to get and/or put stuff.
Paulh is offline   Reply With Quote

Reply


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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 11:51
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 04:21
Some guidance is needed about UDF macros highhopes Fluent UDF and Scheme Programming 2 July 3, 2012 09:41
What are UDF macros C_T_S , C_T_AP,...???? Asghari FLUENT 0 January 28, 2007 10:54


All times are GMT -4. The time now is 05:35.