cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Windchill find out Installation directory through API

KU_9572760
5-Regular Member

Windchill find out Installation directory through API

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. 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

2 REPLIES 2

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

 

KU_9572760
5-Regular Member
(To:Pascal_Brunet)

Hi Pascal,

your earlier solution also worked.

 

Big Thanks,

Top Tags