CFD Online Logo CFD Online URL
Home > Forums > STAR-CCM+

Help with Macros. Help needed. Thanks.

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

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

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

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

§$§eth is offline   Reply With Quote

Old   July 15, 2013, 13:15
New Member
Paul Hancock
Join Date: Mar 2009
Location: Bellingham, WA
Posts: 21
Rep Power: 8
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


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Waves2Foam Related Topics ngj OpenFOAM Running, Solving & CFD 1062 September 25, 2015 09:52
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 12:51
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 05: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 11:54

All times are GMT -4. The time now is 04:49.