I am struggling with the hole wizard API: My macro updates some hole wizard properties (type, standard, fastener type, size), but not all of it is reflected in the GUI.
If I open even_more_holes.SLDASM, select feature "hole3" and run the macro, it says that all four values were set, but the GUI looks like the type has in fact not been set. Only if I manually edit "hole3", the GUI updates correctly.
1. hole3 before running the macro:
2. hole3 after running the macro:
3. hole3 after manually selecting hole3, choosing edit feature, clicking ok (not actually changing anything):
Any idea what I need to change in my macro to have a correct GUI afterwards?
I already tried the following commands just before the last line ("End Sub"), but they did not help:
- swDoc.EditRebuild3
- swDoc.ForceRebuild3(False)
- swDoc.GraphicsRedraw2
SolidworksApi/macros