|
[Sponsors] |
July 15, 2013, 07:49 |
Help with Macros. Help needed. Thanks.
|
#1 |
New Member
Join Date: May 2013
Posts: 12
Rep Power: 12 |
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 |
|
July 15, 2013, 13:15 |
|
#2 |
Member
Paul Hancock
Join Date: Mar 2009
Location: Bellingham, WA
Posts: 31
Rep Power: 17 |
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. |
|
|
|
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 |