Skip to main content
5-Regular Member
January 30, 2023
Solved

Windchill find out Installation directory through API

  • January 30, 2023
  • 1 reply
  • 1079 views

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. 

 

 

 

 

Best answer by Pascal_Brunet

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

 

1 reply

14-Alexandrite
January 30, 2023

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

 

5-Regular Member
January 30, 2023

Hi Pascal,

your earlier solution also worked.

 

Big Thanks,