Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
968 Views, 13 Replies

iLogic Rule works on some Sheetmetal Parts but not others....

Hi Everybody,

i have an iLogic Rule that i want to run from a drawing. The rule will open the referenced part, Save it and close it...that simple(code shown below). Problem is, it doesn't work on all parts. Any advise would be greatly appreciated.

Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.ActiveSheet
Dim view As DrawingView = sheet.DrawingViews.Item(1)

Dim refDoc As Document = ThisApplication.Documents.Open(view.ReferencedFile.FullFileName)

refDoc.Save()

refDoc.Close()