I was able to turn off the derived part in this derived part you have attached. Below is how this is achieved and I have included this in the attached part. Depending on how you are going to use this, it will need to be adapted, have you a larger end goal?
'https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-to-include-exclude-derived-parameter-in-all-parts/td-p/8691196
If ThisApplication.ActiveDocument.DocumentType <> kPartDocumentObject Then
MessageBox.Show("Make a Part Document the active document,Exiting", "iLogic")
Else
Dim oDerSolidBodyList As New ArrayList
Dim oDerPart As PartDocument
oDerPart = ThisApplication.ActiveDocument
'Look for Derived part components
If oDerPart.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Count < 1 Then
MessageBox.Show("No Derived Part Components in this part", "iLogic")
Else
' Set a reference to the part component definition
Dim oDerPartCompDef As PartComponentDefinition
oDerPartCompDef = oDerPart.ComponentDefinition
'Get a reference to derived part components in this part
Dim oDerPartComps As DerivedPartComponents
oDerPartComps = oDerPartCompDef.ReferenceComponents.DerivedPartComponents
'Get a reference to derived part component
Dim oDerPartComp As DerivedPartComponent
oDerPartComp = oDerPartComps(1)'1st component
' Derived part component by name
'MessageBox.Show(oDerPartComp.Name, "iLogic")
'ReferenceFeature objects 'Found in API Help searching solidbody
Dim oDerSolidBodies As ReferenceFeaturesEnumerator
oDerSolidBodies = oDerPartComp.SolidBodies
Dim oDerSolidBody As ReferenceFeature
For Each oDerSolidBody In oDerSolidBodies
'Add each solid body to array list
oDerSolidBodyList.Add(oDerSolidBody.Name)
'MessageBox.Show(oDerSolidBody.Name, "iLogic")
If HARDWARE = "OFF" Then
oDerSolidBody.Suppressed = True
ElseIf HARDWARE = "ON" Then
oDerSolidBody.Suppressed = False
End If
Next
'oDerSolidBodyName = InputListBox("Select one", oDerSolidBodyList, oDerSolidBodyName, Title := "Title", ListName := "Solid Body List")
End If
End If
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan