CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3517 

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
    ThisApplication.ActiveView.Update
End Sub

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

Inv2012Inv2011Inv2010
100% *  CAD 
27.1.2012    10020x  
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   



Featuring:
Link your AutoCAD texts with Excel tables/sheets. Export. Change. Import.
Try DwgText 2015 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.
TOPlist