Message 1 of 6
Change the thickness of lines in a view in a dwg drawing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on a DWG drawing, I have been trying to make the lines of the views thinner, I have this code, but it takes too long, I do not know if you can guide me to optimize my code or if there is a way to define it from the template so that the views have thinner lines, I would appreciate your help.
Dim drawingDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim lineThickness As Double = 0.01
For Each sheet As Sheet In drawingDoc.Sheets
For Each view As DrawingView In Sheet.DrawingViews
For Each line As DrawingCurve In View.DrawingCurves
Line.LineWeight = lineThickness
Next
Next
Next
This is how the view looks like when placed in the drawing.