Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I’d like to create a “White Out” redaction tool that automatically selects a white fill color in the tool’s color picker, but “tool.annot.redaction” is not accepted in GetCurrentStyle().
This seems to work fine with any other tool but how can I make it work with redaction?
Sorry for the long reply. I don't see the problem in this case - the redaction tool should be have like any other tools. Can you confirm that this code works for any other tools (for example line tool)?
That posted code was a workaround that sets the most recent annotation received from e.annots.inserted’s AnnotsList.Item[0]. While that does satisfy our current use case, it doesn’t resolve the original issue of setting the redaction tool’s default overlay fill color in the command bar’s color picker.
After discovering “tool.annot.redaction” was not being accepted into GetCurrentStyle(), I used this code to determine the list of tools that are accepted.
Just investigated this - the thing is that the tools which handlers do not have the specified path to global params are not added to the tools list in the command manager. Thus this behavior occurs.