Hi @JacobRL4SN. Yes, that is possible. The DrawingView API object has those properties that can be turned on and off by code.
https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_DisplayInterferenceEdges
https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_DisplayTangentEdges
Do you have a starter code you are working with already? If so, could you post what you have, then we can try to update it for you. Otherwise please include more details about the situation, such as how you want to tell the code which view for it to target (every view on every sheet of the drawing, just one specific view, just the first view on the first sheet, etc, etc).
Edit: Below is an example iLogic rule you can try out.
If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
MsgBox("A Drawing document must be active for this code to work. Exiting.", vbCritical, "")
Exit Sub
End If
Dim oDDoc As DrawingDocument = ThisDoc.Document
If oDDoc.IsModifiable = False Then Exit Sub
Dim oSheets As Inventor.Sheets = oDDoc.Sheets
For Each oSheet As Inventor.Sheet In oSheets
Dim oViews As DrawingViews = oSheet.DrawingViews
If oViews.Count = 0 Then Continue For
For Each oView As DrawingView In oViews
Try
oView.DisplayInterferenceEdges = True
oView.DisplayTangentEdges = True
Catch
End Try
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) 👍.
Wesley Crihfield

(Not an Autodesk Employee)