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
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?
Solved! Go to Solution.
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
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,
The Windchill server should already be registered and set as the Primary Server in the Creo session:
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:
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😵💫
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