.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with unhighlight

1 REPLY 1
Reply
Message 1 of 2
Anonymous
353 Views, 1 Reply

Problem with unhighlight

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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

sorry!
I have found the solution.

UNHIGHLIGHT.
Thank's at all


"GPaolo" ha scritto nel messaggio
news:5345332@discussion.autodesk.com...
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

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