Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
How do I get windchill installation directory / load point location though API.
I see almost every article related to this but no luck.
Please suggest or guide.
Solved! Go to Solution.
Hello @KU_9572760
At the beginning of your class:
public class TEHUtils {
static String wthome;
static {
try {
WTProperties wtProps = WTProperties.getLocalProperties();
String wthome = wtProps.getProperty("wt.home", "c:/tmp");
} catch (Throwable t) {
t.printStackTrace(System.err);
throw new ExceptionInInitializerError(t);
}
}
..
BR,
Pascal
Hello @KU_9572760
At the beginning of your class:
public class TEHUtils {
static String wthome;
static {
try {
WTProperties wtProps = WTProperties.getLocalProperties();
String wthome = wtProps.getProperty("wt.home", "c:/tmp");
} catch (Throwable t) {
t.printStackTrace(System.err);
throw new ExceptionInInitializerError(t);
}
}
..
BR,
Pascal
Hi Pascal,
your earlier solution also worked.
Big Thanks,