CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 4906

CAD tip CAD tip # 8441:

Question CAD 
 %  platform  category 
Q - question

How to temporarily hide dimensions in a sketch?

A - answer 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 Sub
or 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
End Sub

Outside the Sketch environment just right click on the sketch in the browser and set Dimension visibility.

100% *  CAD 
27.1.2012    15629×  

See also:
Tip 12856:How to force Inventor holes in existing points only?
Tip 12046:Random shape and appearance of an Inventor part or assembly.
Tip 10167:Keyboard shortcuts in Autodesk Fusion 360.
Tip 6761:Inventor: Making sketch dimension texts bigger
Tip 4836:How to dimension the arc length in Inventor?

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info

Please use these tips at your own risk.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.