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

Hi Fatty

It will be great if you give me a small example with ucase..
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: rocky16

Okay, see how it will works for you

==========snip
ElseIf TypeOf ent Is AcadDimDiametric Then
If ent.TextOverride = vbNullString Then
ent.TextOverride = "Dia" & m & "=" & ent.Measurement
Else
If InStr(1, UCase(ent.TextOverride), "%%C", vbTextCompare)Then '//<--should work both for %%c and %%C
ent.TextOverride = "Dia" & m & "=" & Replace(ent.TextOverride, "%%c", vbNullString)
Else
ent.TextOverride = "Dia" & m & "=" & ent.TextOverride
End If
End If
m = m + 1
=========snip

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