.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
rocky16
279 Views, 2 Replies

Hi Fatty

HI Fatty,
The code working but now i have anothr problem,
the Rotated dimension text with textoverride %%C should get the prefix as Dia
how can i do that??
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: rocky16

Without of editor I can just suggest to use
Replace function, somehing like
ent.TextOverride="Dia=" & Replace(ent.TextOverride,"%%c"," ")
not tested!
I can check it later

~'J'~
Message 3 of 3
Anonymous
in reply to: rocky16

Ok, I tested this part with editor,
change in the code on this line:
==========
ElseIf TypeOf ent Is AcadDimDiametric Then
If ent.TextOverride = vbNullString Then
ent.TextOverride = "Dia" & m & "=" & ent.Measurement
Else
If InStr(1, ent.TextOverride, "%%c", vbTextCompare) Then
ent.TextOverride = "Dia" & m & "=" & Replace(ent.TextOverride, "%%c", vbNullString)
Else
ent.TextOverride = "Dia" & m & "=" & ent.TextOverride
End If
End If
m = m + 1
=========

~'J'~

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost