I'm about to dive into a project involving hole wizard feature generation. This is foreboding.
I'm still on SW2012 but I tried your workflow using HoleWizard4(). So far I've only seen one difference between the hole generated during the recording and the hole generated by executing the recorded macro:
I'm pretty sure this thread representation option isn't configured anywhere in the API (which sucks because this is how my group likes to represent reamed holes for dowels).
Have you tried using the deprecated HoleWizard4 call with extraneous arguments removed?
Thanks for trying, I don't remember trying HoleWizard4. The help file doesn't seem that different. Which arguments can you discard?
It looks like the difference between HoleWizard4 and HoleWizard5 is the Length argument was added between Depth and Value1.
I've run into other problems with hole creation which I asked about in this post recently.
One strange thing that I observed was that the second argument, when filled in by the macro recorder, was always -1. This isn't part of the enumeration.
I'm using a HoleWizard/Toolbox standard that was created by a previous employee. It is strange to me that this argument is an enumeration when such customization is possible.I would expect it to take a string identifier which would be the name of the standard. All of the elements of that enumeration look like default toolbox standards that would be available - but I'm not using a default standard. Nowhere do I explicitly say which hole standard to use in my call to HoleWizard4, but it successfully inserts holes from the desired standard. I suspect that -1 means to use the default value and that just happens to be the desired standard on my machine.
I have similar confusion regarding the third argument, that enumeration is monstrously large.
SOLIDWORKS 2017 SP4.1
Tap Holes Parameters
SW2017 API HELP result 1. Tap drill diamete Obsolete? 2. Tap drill depth Obsolete? 3. Thread Depth 1. Thread Depth 4. Near Csink Diameter 2. Near Csink Diameter 5. Near Csink Angle 3. Near Csink Angle 6. Far Csink Diameter 4. Far Csink Diameter 7. Far Csink Angle 5. Far Csink Angle 8. Drill Angle 6. Drill Angle 9. Cosmetic Thread Type 7. Cosmetic Thread Type 10. Thread End Condition 8. Thread End Condition 11. Helicoil Tap Type 9. Helicoil Tap Type? 12. Offset 10. Offset? - 11. ? - 12. ?
HoleWizard5(swWzdTap, swStandardISO, swStandardISOTappedHole, "M10", swEndCondThroughAll, -1, -1, -1, -1, -1, -1, -1, -1 ,-1, -1, -1, swCosmeticThreadWithCallout, swEndCondThroughAll, -1, -1, "", False, True, True, True, True, False)