Hi @bbailey6E5PN. I downloaded your part, created a new drawing, added two base views to it (folded & flat pattern) for that part, then created this iLogic rule in that drawing. When I ran it, it did the same thing as your image (colored outside edges of part too). I am not sure why it did that. I have not really used the new Mark features for anything work related, so I am not super familiar with them yet. I tried changing the feature to 'Mart Through' instead of 'Mark Surface', but that did not seem to help. It acts like the outer edges of the surface are part of the feature, but that does not seem logical to me. Maybe someone at Autodesk could explain that better than me right now.
Sub Main
If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then Exit Sub
Dim oDDoc As DrawingDocument = ThisDoc.Document
Dim oSheets As Inventor.Sheets = oDDoc.Sheets
Dim oTO As TransientObjects = ThisApplication.TransientObjects
Dim oLayers As LayersEnumerator = oDDoc.StylesManager.Layers
Dim oLayer As Layer = Nothing
Try
oLayer = oLayers.Item("Scribe")
Catch
oLayer = oLayers.Item(1).Copy("Scribe")
oLayer.Color = oTO.CreateColor(127, 127, 0) 'shooting for yellow
End Try
Dim oColl As ObjectCollection = oTO.CreateObjectCollection
For Each oSheet As Inventor.Sheet In oSheets
Dim oViews As DrawingViews = oSheet.DrawingViews
If oViews.Count = 0 Then Continue For 'skip to next sheet
For Each oView As DrawingView In oViews
If oView.IsFlatPatternView = False Then Continue For
Dim oPDoc As PartDocument = oView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oSMDef As SheetMetalComponentDefinition = oPDoc.ComponentDefinition
Dim oFPMF As MarkFeature = oSMDef.FlatPattern.Features.MarkFeatures.Item("Mark1")
Dim oDCs As DrawingCurvesEnumerator = Nothing
Try : oDCs = oView.DrawingCurves(oFPMF) : Catch : End Try
If oDCs Is Nothing OrElse oDCs.Count = 0 Then Continue For
For Each oDC As DrawingCurve In oDCs
For Each oDCSeg As DrawingCurveSegment In oDC.Segments
oColl.Add(oDCSeg)
Next 'oDCSeg
Next 'oDC
Next 'oView
If oColl.Count > 0 Then
oSheet.ChangeLayer(oColl, oLayer)
oColl.Clear
End If
oSheet.Update
Next 'oSheet
If oDDoc.RequiresUpdate Then oDDoc.Update2(True)
End Sub
Wesley Crihfield

(Not an Autodesk Employee)