.NET

Reply
*GPaolo
Message 1 of 2 (137 Views)

Problem with unhighlight

137 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 (137 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.