The hole defaults for Inventor 2012 have changed from previous releases.
The screen-shots below show the difference.
Inventor 2011
Inventor 2012
This Hotfix sets back the default Hole termination to "Distance" at the start of an Inventor 2012 session, instead of "Through All".
The last user selected termination type will remain the default selection during that session.
A more complete solution will be delivered in Service Pack 1 for Inventor 2012. Once the service pack is installed the last user selected termination type will remain the default type from session to session.
By the way, you can find also interesting the procedure below that offers more flexibility even after the installation of the Hotfix or the Service Pack 1.
Download and unzip this VBA Macro to your local drive
- Menu Tools > Options > VBA editor
- Expand the ApplicationProject so that you see the Modules
- Insert a new module
- Copy and paste the macro text in the module
- Go to Tools > Options > Customize.
- Locate the macro by name (in this case "My_hole_defaults") in the left pane.
- If you want the macro to show up in the Part Modeling ribbon , select Part|Model above the right pane.
- Hit the >> button and set the Text checkbox (you would want to do this for macros to distinguish between them, because all the macro icons are identical).
If you want to supply a custom bitmap for the icon, read blog post below on the subject:
http://modthemachine.typepad.com/my_weblog/2008/11/creating-buttons-for-vba-macros.html
Additional notes
- If another default is required instead of the 8 mm deep distance hole, you can change it in the macro editing the line below
Call SendMessage(hwnd, WM_SETTEXT, 0, ByVal "8 mm")
- If you want another default Termination, change the line comboboxposition = 0 to 1 for "Through all" or to 2 for "To" as default.
'Set comboboxposition = 0 to select "Distance"
'Set comboboxposition = 1 to select "Through all"
'Set comboboxposition = 2 to select "To"
comboboxposition = 0



Subscribe
Great macro, would it be possible to also have the option to change the default diameter ?
Posted by: Kristian Kristensen | 11/07/2011 at 11:17 PM