Reliably Get Thread Depth from Hole Wizard

I am having difficulty reliably pulling the thread depth via the API created using the hole wizard.

If the option 'Tap drill diameter' is selected, WizardHoleFeatureData2.ThreadDepth returns full thread depth regardless of the actual 'tap drill depth'. Does anyone know how to get the correct thread in this circumstance?

The issue does not occur is 'Cosmetic thread' or 'Remove thread' option is selected.

Kind Regards,

Aaron

SolidworksApi macros