Hi,
Please test the script below.
I think you were picking the wrong Drawing view
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("A")
Dim namedGeometry1 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "BIGEND")
Dim namedGeometry2 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "SMALLEND")
Dim namedGeometry3 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "BIGEND_AXIS")
Dim namedGeometry4 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "SMALLEND_AXIS")
Dim namedGeometry5 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "BIGEND_TOP")
Dim namedGeometry6 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "SMALLEND_TOP")
Dim namedGeometry7 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "BIGEND_BOTTOM")
Dim namedGeometry8 = VIEW1.GetIntent("MASTER VIRTUAL MODEL:1", "SMALLEND_BOTTOM")
Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions
ThisDrawing.BeginManage()
If True Then
Dim linDim1 = genDims.AddLinear("BIGEND_AXIS-SMALLEND_AXIS", VIEW1.SheetPoint(0.5, 2.25), namedGeometry3, namedGeometry4)
Dim linDim2 = genDims.AddLinear("BIGEND_TOP-BIGEND_BOTTOM", VIEW1.SheetPoint(-0.1, -0.1), namedGeometry5, namedGeometry7)
Dim linDim3 = genDims.AddLinear("SMALLEND_TOP-SMALLEND_BOTTOM", VIEW1.SheetPoint(1.15, 2), namedGeometry6, namedGeometry8)
End If
Dim view_A = Sheet_1.DrawingViews.ItemByName("A")
Dim BIGEND = view_A.GetIntent("MASTER VIRTUAL MODEL:1", "BIGEND")
Dim holeDim = genDims.AddDiameter("BIGEND", VIEW1.SheetPoint(1, 2.5), BIGEND)
Dim SMALLEND = view_A.GetIntent("MASTER VIRTUAL MODEL:1", "SMALLEND")
Dim holeDim2 = genDims.AddDiameter("SMALLEND", VIEW1.SheetPoint(1, 2.5),SMALLEND )