Skip to main content
1-Visitor
June 30, 2022
Question

How to test the code to check the type of WTObject

  • June 30, 2022
  • 2 replies
  • 1166 views

As per this thread - same question:

 

@CHASEONHO did you get this part figured out... I'm fairly new to all this... I have my eclipse environment configured (I beleive)  but have yet to figure out how to test code from it.

2 replies

avillanueva
23-Emerald I
23-Emerald I
June 30, 2022

Are you asking how to setup Eclipse with Windchill or how to test checking the object type code portion?

1-Visitor
June 30, 2022

My Eclipse environment is set up... I want to be able to run my code on an object and get system outs in the console so I can rapidly iterate the code with out having to plug it into my expression robot and create new PR objects to test. 

HelesicPetr
22-Sapphire II
22-Sapphire II
July 1, 2022

Hi @ChiselnMallet1 

You have several options how to run your code.

 

From Windchill shell call a java class (windchill wt.load.util.UpdateEditDTDUtility)

From WebBrowser to call  a java class with RemoteAccess (http://server.my.com/Windchill/servlet/WindchillAuthGW/com.ex.JavaPackange/MyMethod)

or create button in windchill to call a java class method

 

PS: very useful is a Customization Guide 

 

PetrH