03-30-2015
11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-30-2015
11:30 AM
You can use an If statement to control the layer.
For example, if you have a parameter in your drawing called "Material", the code will look like this.
SyntaxEditor Code Snippet
If Material = "Stainless Steel" Then ThisDrawing.Document.StylesManager.Layers("Layer Name").Visible = True Else ThisDrawing.Document.StylesManager.Layers("Layer Name").Visible = False End If