- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all.
I would like your help to understand the below. ![]()
The below rule is included in one of my Inventor parts, it is used to delete a pdf file included as 3rd party object.
The rule works perfectly when I run inside the part environment, but when I request to run straight from the assembly environment with ilogicVb.RunRule ("partABC", "Rule break link") it does nothing.
What would be the reason?
This is the rule included in the part file.
Dim oDoc As Inventor.Document oDoc = ThisApplication.ActiveDocument For Each ref As ReferencedOLEFileDescriptor In oDoc.ReferencedOLEFileDescriptors
If (iProperties.Value("Custom", "Material") = "ABC") And (iProperties.Value("Custom", "Type") = "X") Then
If (ref.DisplayName = "PDFA.pdf") Then
ref.Delete() 'delete reference
End if
End if
Next
Solved! Go to Solution.