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

I can run this rule manually after new drawing but if I put it into the trigger or reference it with any rule triggered by new drawing I get the cable and harness error

 

Dim oSheet As Sheet
If MyBooleanParam = True Then
oSheet = ThisDoc.Document.Sheets.Item(2) 
oSheet.Delete
Else
	Try 
	oSheet = ThisDoc.Document.Sheets.Item(1) 
	oSheet.Delete
	Catch
	MessageBox.Show("2nd sheet not found?", "iLogic")
	Return
	End Try
End If