Dim dingdian(2) As Double
Dim diyidian(2) As Double
Dim dierdian(2) As Double
'3点式角度标注
Private Sub CommandButton1_Click()
dingdian(0) = 10
dingdian(1) = 10
dingdian(2) = 0
diyidian(0) = 20
diyidian(1) = 10
diyidian(2) = 0
dierdian(0) = 20
dierdian(1) = 20
dierdian(2) = 0
Dim sandianjiaodubiaozhu As AcadDim3PointAngular
Set sandianjiaodubiaozhu = ThisDrawing.ModelSpace.AddDim3PointAngular(dingdian, diyidian, dierdian, dierdian)
ZoomAll
End Sub
'对齐标注
Private Sub CommandButton2_Click()
dingdian(0) = -10
dingdian(1) = 10
dingdian(2) = 0
diyidian(0) = 20
diyidian(1) = 10
diyidian(2) = 0
dierdian(0) = 10
dierdian(1) = 20
dierdian(2) = 0
Dim duiqibiaozhu As AcadDimAligned
Set duiqibiaozhu = ThisDrawing.ModelSpace.AddDimAligned(diyidian, dierdian, dingdian)
ZoomAll
End Sub