1 Answers
A:
If you're working in a drawing (.idw or .dwg), you can toggle layer visibility like this:
Sub HideLayer() Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument
Dim oLayer As Layer Set oLayer = oDrawDoc.StylesManager.Layers.Item('MyLayerName') ' Replace with your layer name
oLayer.Visible = False End Sub
Autodesk Inventor
AutodeskHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers