Hi @harvey_craig2RCUH,
Adding to the previous replies, here are some examples.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Copy a view to a new drawing
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
'create new drawing
Dim Drawing2 As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject)
VIEW1.View.CopyTo(Drawing2.Sheets.Item(1))
Copy view to existing open drawing ( assumes it is the 2nd drawing open)
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
'get other drawing ( second drawing in the open/visible drawing collection)
Dim Drawing2 As DrawingDocument = ThisApplication.Documents.VisibleDocuments.Item(2)
VIEW1.View.CopyTo(Drawing2.Sheets.Item(1))
Drawing2.Activate
same as above, but get target drawing by name
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
'get other drawing by name
Dim Drawing2 As DrawingDocument = ThisApplication.Documents.ItemByName("C:\Temp\Drawing55.idw")
VIEW1.View.CopyTo(Drawing2.Sheets.Item(1))
Drawing2.Activate
Copy sheet ( all views on sheet) to new drawing
'get sheet from active drawing
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
'create new drawing
Dim Drawing2 As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject)
'copy sheet from active drawing to new drawing
Sheet_1.Sheet.CopyTo(Drawing2)
'delete blank sheet that is created from template
Drawing2.Sheets.Item(1).Delete
Copy sheet ( all views on sheet) to new drawing using a specific template
'get sheet from active drawing
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
'create new drawing
Dim Drawing2 As DrawingDocument
Drawing2 = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, "C:\Templates\Standard.idw")
'copy sheet from active drawing to new drawing
Sheet_1.Sheet.CopyTo(Drawing2)
'delete blank sheet that is created from template
Drawing2.Sheets.Item(1).Delete
Copy sheet ( all views on sheet) then remove some of the views
'get sheet from active drawing
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
'create new drawing
Dim Drawing2 As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject)
'copy sheet from active drawing to new drawing
Sheet_1.Sheet.CopyTo(Drawing2)
'get new sheet
Dim NewSheet As Sheet = Drawing2.Sheets.Item(2)
'delete some unneeded views
NewSheet.DrawingViews.Item(2).Delete
NewSheet.DrawingViews.Item(3).Delete
'delete blank sheet that is created from template
Drawing2.Sheets.Item(1).Delete