by Fenton Webb
When calling AcDbEntity::highlight() or Entity.Highlight() (in .NET) as we all know you get the normal AutoCAD dashed highlight draw.
However, using these functions before and after your highlight call you can really get some nice new highlight types of your own.
void acgsSetHighlightColor( Adesk::UInt16 colorIndex );
void acgsSetHighlightLinePattern( AcGs::LinePattern pattern );
void acgsSetHighlightLineWeight( Adesk::UInt16 weight );
If you need to PInvoke these from .NET, here are the C# DLLImport signatures for 2013…
[DllImport("acdb19.dll", CallingConvention = CallingConvention.Cdecl,
EntryPoint = "?acgsSetHighlightColor@@YAXG@Z"]
public static extern void acgsSetHighlightColor(uint colorIndex);
[DllImport("acdb19.dll", CallingConvention = CallingConvention.Cdecl,
EntryPoint = "?acgsSetHighlightLinePattern@@YAXW4LinePattern@AcGs@@@Z"]
public static extern void acgsSetHighlightLinePattern(int pattern);
[DllImport("acdb19.dll", CallingConvention = CallingConvention.Cdecl,
EntryPoint = "?acgsSetHighlightLineWeight@@YAXG@Z"]
public static extern void acgsSetHighlightLineWeight(uint weight);