09-16-2024
04:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-16-2024
04:26 AM
I am having the same issue...
Starting a new drawing fires up a form asking what sheet format is required for the drawing, (then populates the sheet with sheet format rule) all of this works fine for new sheets in an existing drawing. The harness error pops up when starting a new drawing firing this rule which is the same form and rules but then deletes the first sheet
' call up list of sheets from parameter "Sheet_Format" iLogicForm.Show("Create Drawing", FormMode.Modal) iLogicVb.RunRule("Sheet Formats") Dim oSheet As Sheet If MyBooleanParam = True Then oSheet = ThisApplication.ActiveDocument.Sheets.Item(2) oSheet.Delete Else Try oSheet = ThisApplication.ActiveDocument.Sheets.Item(1) oSheet.Delete Catch MessageBox.Show("2nd sheet not found?", "iLogic") Return End Try End If