Valued Contributor
Posts: 86
Registered: ‎07-14-2010
Message 1 of 2 (176 Views)
Accepted Solution

How to set one palette on a paletteset on top through code?

176 Views, 1 Replies
04-11-2012 08:37 AM

Hi All,


I have a paletteset which contains multiple palettes. How can I set one of the palette on top through code?


It is something like set current tab in tab control


Any hints?






*Expert Elite*
Posts: 982
Registered: ‎04-27-2009
Message 2 of 2 (167 Views)

Re: How to set one palette on a paletteset on top through code?

04-11-2012 10:03 AM in reply to: yaqiz

Palette contained in a PaletteSet is indexed by its order being added into the paletteSet. If you know the index of the pallete, you can call PaletteSet.Activate(index) to activate the palette, or you can loop the PaletteSet with palette name (Palette has a name when being added into PaletteSet):


For i As Integer=0 To myPaletteSet.Count-1

    Dim p As Palette=myPaletteSet(i)

    If  p.Name.ToUpper()="SOMENAME" THEN


        Exit For

    End If


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.