We are using Visual Basic 2010 Express. I want to add/remove a 3D PCB View using automation???
I can get the collection, and the views within it.
Here is part of the code:
Dim oPCBView As MGCPCB.Views
oPCBViews = oPCBDoc.ViewsEx
Console.Write(vbCrLf & vbCrLf & oPCBViews.Count & vbCrLf)
For x As Integer = 1 To oPCBViews.Count
oPCBView = oPCBViews.Item(x)
Console.Write(vbCrLf & oPCBView.Name)
Console.Write(vbCrLf & oPCBView.Type)
Console.Write(vbCrLf & oPCBView.OriginalName)
If oPCBView.Name.Contains("3D View") Then
I tried your code and confirmed that in VX1.1 the view.Delete method is not removing the 3D view. You will need to open a ticket on this.