What a pain in the... This sounds like a good point to address with an idea in the Inventor Ideas forum to me. This is obviously unwanted behavior. Are you using the latest version? I don't know if it was fixed in any later versions or updates, but I rather doubt it. I finally got updated to 2024 the other day, so I decided to check this behavior with a quick rule that 'Loggs' its findings. The code ran without any errors, and I got some pretty interesting data.
Here is a screenshot of the only view on the sheet...it is a section view whos 'parent' is on sheet 1, and this is sheet 2.

And here is the iLogic code:
Dim oDDoc As DrawingDocument = ThisDoc.Document
Dim oSheet As Inventor.Sheet = oDDoc.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)
Dim oHRs As DrawingViewHatchRegions = oView.HatchRegions
Logger.Info("About to check oHRs IsNothing & oHRs.Count")
If IsNothing(oHRs) OrElse oHRs.Count = 0 Then Exit Sub
Logger.Info("oHRs.Count = " & oHRs.Count)
For Each oHR As DrawingViewHatchRegion In oHRs
Logger.Info("About to get region boundary geometries to a variable.")
Dim oHRBGs As ObjectCollection = oHR.BoundaryGeometries
Logger.Info("About to check if region boundary geometries Is Nothing or Count = 0.")
If IsNothing(oHRBGs) OrElse oHRBGs.Count = 0 Then
Logger.Info("Region boundary geometries Is Nothing or count = 0")
Else
Logger.Info("Region boundary geometries count = " & oHRBGs.Count)
End If
Logger.Info("About to get region hatch areas to a variable.")
Dim oHAs As DrawingViewHatchAreas = oHR.HatchAreas
Logger.Info("Got region hatch areas to a variable. Now about to check Is Nothing & Count")
If IsNothing(oHAs) OrElse oHAs.Count = 0 Then
Logger.Info("Region Hatch Areas Is Nothing or count = 0")
Continue For
Else
Logger.Info("Region Hatch Areas Count = " & oHAs.Count)
For Each oHA As DrawingViewHatchArea In oHAs
Logger.Info("About to get hatch area boundary geometries to a variable.")
Dim oHABGs As ObjectCollection = oHA.BoundaryGeometries
Logger.Info("Got hatch area boundary geometries to a variable.")
If IsNothing(oHABGs) OrElse oHABGs.Count = 0 Then
Logger.Info("Hatch area boundary geometries IsNothing Or Count = 0")
Else
Logger.Info("Hatch area boundary geometries Count = " & oHABGs.Count)
End If
Next
End If
Next
...and here is the Logger contents:
INFO| 4: >>---------------------------
INFO|About to check oHRs IsNothing & oHRs.Count
INFO|oHRs.Count = 1
INFO|About to get region boundary geometries to a variable.
INFO|About to check if region boundary geometries Is Nothing or Count = 0.
INFO|Region boundary geometries count = 18
INFO|About to get region hatch areas to a variable.
INFO|Got region hatch areas to a variable. Now about to check Is Nothing & Count
INFO|Region Hatch Areas Count = 3
INFO|About to get hatch area boundary geometries to a variable.
INFO|Got hatch area boundary geometries to a variable.
INFO|Hatch area boundary geometries Count = 6
INFO|About to get hatch area boundary geometries to a variable.
INFO|Got hatch area boundary geometries to a variable.
INFO|Hatch area boundary geometries Count = 6
INFO|About to get hatch area boundary geometries to a variable.
INFO|Got hatch area boundary geometries to a variable.
INFO|Hatch area boundary geometries Count = 6
Wesley Crihfield

(Not an Autodesk Employee)