Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to disable reference of all sketch lines by vba. But when the lines created by Project Cut Edges command, following code doesn't work.
Sub DisableReference()
' On Error Resume Next
Set doc = ThisApplication.ActiveDocument
Dim oSketch As PlanarSketch
Set oSketch = ThisApplication.ActiveEditObject
Dim oLines As SketchLines
Set oLines = oSketch.SketchLines
Dim oLine As SketchLine
For Each oLine In oLines
oLine.Reference = False
Next
End Sub
Solved! Go to Solution.