.NET

Reply
*GPaolo
Message 1 of 2 (135 Views)

Problem with unhighlight

135 Views, 1 Replies
09-29-2006 06:56 AM
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
*GPaolo
Message 2 of 2 (135 Views)

Re: Problem with unhighlight

09-29-2006 07:14 AM in reply to: *GPaolo
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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.