Remove text (measurement) from dimension

Remove text (measurement) from dimension

Anonymous
Not applicable
841 Views
2 Replies
Message 1 of 3

Remove text (measurement) from dimension

Anonymous
Not applicable

I would like to create textprefix "aa" and remove measurement (numbers indicating length )

How to remove this measurement ?

Set wymiartyprot01 = ThisDrawing.ModelSpace.AddDimRotated(pkta01ScPgSr, pktaOsHorPSrg01,pkta01ScPgz, k90Deg)
    wymiartyprot01.TextPrefix = "aa"


0 Likes
Accepted solutions (1)
842 Views
2 Replies
Replies (2)
Message 2 of 3

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

does that work for you?

Public Sub test()
   Dim tDimObj As AcadDimension
   Dim tPnt1(2) As Double: tPnt1(0) = 1: tPnt1(1) = 1: tPnt1(2) = 0
   Dim tPnt2(2) As Double: tPnt2(0) = 5: tPnt2(1) = 1: tPnt2(2) = 0
   Dim tPnt3(2) As Double: tPnt3(0) = 3: tPnt3(1) = 2: tPnt1(2) = 0
   
   Set tDimObj = ThisDrawing.ModelSpace.AddDimRotated(tPnt1, tPnt2, tPnt3, 0)
   tDimObj.TextOverride = "aa"
End Sub

 

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank You it works .

 

0 Likes