I am probably missing something stupid, i am new to ilogic
the drawing i want the sheet copied from is C:\_VAULT_WORKSPACE\JOBS\Templates\tag Testing (Tony).idw
The Sheet I want is called "Tags" on the above drawing
If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
MsgBox("This rule '" & iLogicVb.RuleName & "' only works for Drawing Documents.",vbOK, "WRONG DOCUMENT TYPE")
Return
End If
Dim oDDoc As DrawingDocument = ThisDrawing.Document
Dim oOtherDocPath As String = "C:\_VAULT_WORKSPACE\JOBS\Templates\tag Testing (Tony).idw"
Dim oOtherDrawing As DrawingDocument = ThisApplication.Documents.Open(oOtherDocPath,False)
For Each oSheet As Sheet In oDDoc.Sheets
If oSheet.Name.Contains("Tags") Then
oSheet.CopyTo(oOtherDrawing)
End If
Next