Pessoal,
Bom dia!
como disse no titulo, estou tentando acrescentar uma cota em um desenho e editar seu valor para um outro qualquer. Alguem sabe como fazer? alguem poderia me ajudar?
eu até conssegui acrescentar a dimensao mas preciso editar o valor de algumas, acrescentando textos "<> Ref." por exemplo.
estou usando este processo abaixo:
Public Sub CreateShaft_M82C470665_PT2_Dimensions()
AddDimAligned 0, 0, 0, 3.69, 0, 0, 1.845, -3.6, 0#
AddDimAligned 3.84, 0#, 0#, 3.69, 0, 0, 1.34095238, -1.9, 0#
AddDimAligned 0, 0, 0, 6.1996, 0, 0, 3.0998, -5.3, 0#
AddDimAligned 0#, 0#, 0#, 8.2535, 0#, 0#, 4.12675, -7#, 0#
End Sub
Function AddDimAligned(ByRef FirstPoint_X As Variant, ByRef FirstPoint_Y As Variant, ByRef FirstPoint_Z As Variant, ByRef LastPoint_X As Variant, ByRef LastPoint_Y As Variant, ByRef LastPoint_Z As Variant, ByRef TextPoint_X As Variant, ByRef TextPoint_Y As Variant, ByRef TextPoint_Z As Variant)
Dim dimObj As AcadDimAligned
Dim point1(0 To 2) As Double
Dim point2(0 To 2) As Double
Dim location(0 To 2) As Double
point1(0) = FirstPoint_X : point1(1) = FirstPoint_Y: point1(2) = FirstPoint_Z
point2(0) = LastPoint_X : point2(1) = LastPoint_Y: point2(2) = LastPoint_Z
location(0) = TextPoint_X : location(1) = TextPoint_Y: location(2) = TextPoint_Z
Set dimObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location)
End Function