Message 1 of 6
Update Browser node iLogic gives error when saving a dwg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I have a script for updating browsernodes in ipt and iam that I found as such:
Sub Main() Dim oDoc As Document = ThisApplication.ActiveDocument oDoc.DisplayName = "" Dim oCD As ComponentDefinition = oDoc.ComponentDefinition NameReset(oCD.Occurrences) End Sub Sub NameReset(oOccs As ComponentOccurrences) For Each oOcc As ComponentOccurrence In oOccs Try oOcc.Name = "" Catch ex As Exception MsgBox(ex.Message) End Try Try NameReset(oOcc.SubOccurrences) Catch End Try Next End Sub
It works well for both ipt and iam.
But now when I try to save the drawing (with either ipt or iam), I get the following error:
Error in rule: UpdateBrowserNodes, in document: DOC1234 - Plate with 4x holes.ipt
Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
Is there another way to do this? Fix error so it doesn't run the iLogic in dwg from ipt/iam rule (that gives the error in dwg)?
Hope you can help 😉