CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.127.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 8441:
Question
A
If you need to suppress (hide, disable) display of sketch simensions in the Inventor Sketch environment, you can use the following simple VBA macro. Insert it in the active document (or template) in the VBA Editor.
You can run it with Alt+F8 or add it to your ribbon (see):
Sub ToggleDims() Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument oDoc.ComponentDefinition.Sketches(1).DimensionsVisible = Not oDoc.ComponentDefinition.Sketches(1).DimensionsVisible End Subor an alternative macro which can be stored anywhere:
Sub ToggleDims2()
Dim oSketch As PlanarSketch
On Error Resume Next
Set oSketch = ThisApplication.ActiveEditObject
If Err.Number <> 0 Then Exit Sub
On Error GoTo 0
oSketch.DimensionsVisible = Not oSketch.DimensionsVisible
ThisApplication.ActiveView.Update
End Sub
Outside the Sketch environment just right click on the sketch in the browser and set Dimension visibility.
Inv2012Inv2011Inv2010
27.1.2012
25863×
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?