Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey chaps.
I'va managed to cobble this code together to turn some sketch visibilities on and off. However, what I'd really like to do is have a single sketch containg some blocks, and turn the visibility of the blocks on and off...
I'm struggling to work out how to call the blocks - can YOU help!
Paul
'Iterate through the sketches collection 'Turn the edging indicators On And Off For Each oSketch In oDoc.ComponentDefinition.Sketches Select Case oSketch.Name Case "Front Edged" If E01 = True Then oSketch.Visible = True Else oSketch.Visible = False End If Case "Top Edged" If E02 = True Then oSketch.Visible = True Else oSketch.Visible = False End If Case "Back Edged" If E03 = True Then oSketch.Visible = True Else oSketch.Visible = False End If Case "Base Edged" If E04 = True Then oSketch.Visible = True Else oSketch.Visible = False End If End Select Next
Customer Adoption Specialist: Autodesk Informed Design
Help | Learn | Forum | Blog | Ideas | Sample content | Linkedin
Solved! Go to Solution.