CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 3581 

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    9916x  
Comments   Tell a friend

See also:
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?
Tip 4729:Entering Inventor angles in degrees, minutes, seconds.

Back   All CAD Tips All CAD tips&tricks

How to wrap a long parts list to multiple columns? « | » How to increase width of the layer control in AutoCAD ribbon?

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   

Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info

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