i have prepare a sub that make the highlight on/of of one entity.
the "highlight on" works, but then "off" not works.
Any help?
Many thank's in advance
VS2005 ACAD2006
Public Overloads Shared Sub HmHighlight(ByVal ent As AcDb.Entity, Optional
ByVal turnOn As Boolean = True)
Try
Dim ids(0) As AcDb.ObjectId
ids(0) = ent.ObjectId
Dim index As New AcDb.SubentityId(AcDb.SubentityType.Edge, 0)
Dim path As New AcDb.FullSubentityPath(ids, index)
ent.Highlight(path, turnOn)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub