Ilogic external configuration:
https://autodeskmfg.typepad.com/blog/2012/01/working-with-external-ilogic-rules.html
https://adndevblog.typepad.com/manufacturing/2015/01/add-external-ilogic-rule-to-event-trigger.html
i have polish version of inventor so i will not be able to post print screens to you because you will not understand 🙂
then change rule to this (it checks document sub type):
If ThisApplication.ActiveDocument.subtype<>"{BBF9FDF1-52DC-11D0-8C04-0800090BE8EC}" And ThisApplication.ActiveDocument.subtype<>"{E60F81E1-49B3-11D0-93C3-7E0706000000}" Then
Dim name As String = ThisDoc.Document.FullFileName
Dim title As String = ThisDoc.Document.PropertySets(1).Item("title").Value
Dim ass As AssemblyDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kAssemblyDocumentObject, , True)
ass.PropertySets(1).Item("title").Value = title
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
Dim oMatrix As Matrix
oMatrix = oTG.CreateMatrix
oMatrix.SetTranslation(oTG.CreateVector(0, 0, 0))
ass.ComponentDefinition.Occurrences.Add(name,oMatrix)
ass.SaveAs(Replace(name, ".ipt", ".iam"), False)
End If