Here is a fairly quick & simple iLogic example of accessing the Hatch properties of a section view in a drawing.
If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
MsgBox("A Drawing Document must be active for this rule to work. Exiting.",vbCritical, "WRONG DOCUMENT TYPE")
Exit Sub
End If
Dim oDDoc As DrawingDocument = ThisApplication.ActiveDocument
'find/get the section view
For Each oSheet As Sheet In oDDoc.Sheets
For Each oView As DrawingView In oSheet.DrawingViews
If oView.ViewType = DrawingViewTypeEnum.kSectionDrawingViewType Then
Dim oSecView As SectionDrawingView = oView
If oSecView.HatchRegions.Count > 0 Then
For Each oHR As DrawingViewHatchRegion In oSecView.HatchRegions
'oHR.Angle 'Read/Write - Double
'oHR.ByMaterial 'Read/Write - Boolean
'oHR.Color 'Read/Write - Color object
'oHR.DoublePattern 'Read/Write - Boolean
'oHR.HatchAreas 'Read Only - DrawingViewHatchAreas object
'oHR.Layer 'Read/Write - Layer object
'oHR.LineWeight 'Read/Write - Double
'oHR.Pattern 'Read/Write - DrawingHatchPattern object
'oHR.Pattern = oDDoc.DrawingHatchPatternsManager.Item(1)
'oHR.Scale 'Read/Write - Double
'oHR.Shift 'Read/Write - Double
'oHR.Visible 'Read/Write - Boolean
If oHR.Visible Then oHR.Visible = False
Next
End If
End If
Next
Next
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)