Need a way to get the user selection (OK, cancel) of ProCmdMmEditMaterial and ProCmdMmEditMaterials
- 1 reply
- 27 views
1. Describe the Problem
For all situations the user edits a Creo material or material assignment we run a custom logic via "Creo Parametric Object TOOLKIT Java Free API".
Hence there is no way to get the information from Creo when the user selects "Cancel" in the respective Creo dialogs and does not chance the materials at all. In this case we don't want to start any actions via "Creo Parametric Object TOOLKIT Java Free API".
Therefore we need a way to get the user selection (OK, cancel) of the commands ProCmdMmEditMaterial and ProCmdMmEditMaterials ideally in "Creo Parametric Object TOOLKIT Java Free API" (JLink).
This problem had also been reported in C17514420 with the result: "There is no supported API to do that".
With this Idea I'd like to ask for implementing new functionality in "Creo Parametric Object TOOLKIT Java Free API" (best case .. or Toolkit if this is not possible).
2. Are you using a workaround?
The workaround is to parse the Creo trail file for certain commands that are logged when the user presses "Cancel". Hence this is officially not supported by PTC and may be dropped in a future Creo Parametric version.
3. What is the use case for your organization?
Preventing unwanted custom logic changes to materials in case the user just wants to look at the material definitions (in part mode or assembly mode) and at the end cancels the dialogs.
4. What impact does this problem currently have on your organization?
We have a workaround (see above), hence this workaround is not officially supported by PTC. It might be not working in the future or requires updates in the "Creo Parametric Object TOOLKIT Java Free API" (JLink) part to keep functional.


