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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

JLink - XTypeMismatch ??

KOENVERSCHOOTEN
1-Newbie

JLink - XTypeMismatch ??

Hi all,

 

Got the following exception thrown when using the method 'ListFeaturesByType':

--> com.ptc.Implementation.cipjava$XTypeMismatch

 

 

This used for scanning an assembly, and works fine. But as soon as I add a (custom) function to any of the relations on component level, the exception is thrown.

 

 

 

 

Any ideas on what is causing this? Can't find any info on this exception in the documentation.

 

 

 

 

- Using Wildfire 5

- Tried it on another pc, same result.

- If I keep trying, after about 10-20 times, the problem is solved and it works fine again. After save / re-open the problem starts again.

- Doen't matter what custom function I use, same result for all of them.

1 REPLY 1

The only solution I found so far is to repeat the 'ListFeaturesByType' command until no exception is thrown...

Not really a good programming practice, but it works. Downside is this causes a delay of a few seconds, so not very useful if you have to repeat it many times.

PS: problem seems to be solved in Creo 2. Tried running the same code, no exceptions...

Top Tags