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

pfcPart.Part.RetrieveMaterial with Windchill

Bas
10-Marble
10-Marble

pfcPart.Part.RetrieveMaterial with Windchill

I'm using a custom menu created with J-Link to set the material in a part. The method pfcPart.Part.RetrieveMaterial works fine when the config option pro_material_dir is set to a local/network drive.

 

However when this is set to a Windchill location using wtpub://[servername]/[material library] I get the error: com.ptc.wfc.Implementation.pfcExceptions$ToolkitNotFound.

 

The material library location is correct (it points to the right location when manually setting the material) and the Windchill server is registered and authentication is done when starting up Creo.

 

Do I need to make a connection to Windchill within my program before I can access items such as material files?

ACCEPTED SOLUTION

Accepted Solutions
Bas
10-Marble
10-Marble
(To:Bas)

Turns out there was nothing wrong with the program, but a bug in Creo Parametric with lower case material files in Windchill. Which PTC recently patched. See: https://www.ptc.com/support/article/CS409795

 

View solution in original post

4 REPLIES 4
Catalina
Moderator
(To:Bas)

Hi @Bas,

Thank you for your question!

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Best regards,

Catalina
PTC Community Moderator
Robrecht
13-Aquamarine
(To:Bas)

The Windchill server should already be registered and set as the Primary Server in the Creo session:

Robrecht_1-1730801970763.png

 

In case it still throws the ToolkitNotFound exception, make sure the full path of the material library you pass to the RetrieveMaterial() method is valid.

You can check this easily by copying the full path of the material location (in the screenshot here, that would be wtpub://plm13/MaterialLibrary for example) into the address bar of the embedded browser in Creo. When you hit Enter, it should take you to the material library in Windchill.

 

If the path is not valid (due to a typo or a wrong servername of foldername) then you will get this message:

Robrecht_2-1730802339629.png

 

Kind regards
Robrecht
RPN
17-Peridot
17-Peridot
(To:Bas)

For sure you need first a connection, And test which one is choosen if you update a material file. To be honest, I would rather do a dfs share, because you need to handle access rights as well in WT😵💫

Bas
10-Marble
10-Marble
(To:Bas)

Turns out there was nothing wrong with the program, but a bug in Creo Parametric with lower case material files in Windchill. Which PTC recently patched. See: https://www.ptc.com/support/article/CS409795

 

Announcements


Top Tags