Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a way to change the icon associated with a custom Palette?

Status
Not open for further replies.

potrero

Mechanical
Aug 30, 2007
516
NX6.0.1.5 MP2

The ability to assign a directory as a custom Palette is very useful. (Preferences > Palettes > Open Directory as Palette) If you do this to multiple directories, though, it starts to get difficult to figure out which directory Palette is which.

Is there a way to assign a custom icon to these user-defined Palettes?
 
Replies continue below

Recommended for you

... try to create an pax File for your needs,
in the *pax file you can handle different the previews and Icons...
 
potrero,

Those pax files are editable in a text editor and call up a bitmap for the icon. You can just edit it to use a different bitmap. Place the bitmap in the same directory as the .pax file and it works for me [wink]

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
hmm, I've tried to figure out how to create a .pax file using Open Directory as Palette, without success. If you wouldn't mind, can you lead me thru the process? Alternatively if it's better to create a new palette from scratch, that's capable of showing the parts inside a folder, that'd be fine too.

Thanks.
 
The best way for what you need to know in order to answer your question is to simply search your install directories, find a .pax file and edit that to begin with. There are several good examples bundled with the system that you can use most of which operate with drawing templates. I should have thought the way that they work isn't to difficult to understand, but if you're still stuck get back to us.

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
If I want the .pax to refer to all files in a given directory, rather than specific files, what would the appropriate XML be? Sorry if this is obvious, but I can't find a good example to work from other than various .pax files which list specific files, one by one.
 
In short for a purely directory based palette I know of no way to change the icon, but I can tell you how to use the directory based palette to spawn a .pax file that you will be able to edit and for most people than may be just as good.

If you create a palette based on a directory then what you need to do is to open that new palette that you created in the resource bar and right click in the white space and then you can "Save as" in order that you are able to edit it in a text editor.

It does tend to be differently formatted than the palettes you find in the installation directories, but you can easily edit such a thing to change the formatting, and of course change the bitmap.

To edit the bitmap it is one of the first few statements
what comes from a directory created .pax file is something like....

<Presentation name="E:\UG\NX-5\Formats\" bitmap="filenew" application="All"/>

....So just change the end so that it reads....

<Presentation name="Drawing Templates (Metric)" bitmap="drawing_new.bmp"/>

.... putting a bitmap file called drawing_new.bmp in the same directory as the .pax file works for me.


What you will wind up doing as result is deleting the directory based palette and replacing it with the hand edited version. As a side effect of that it will only refresh according to the contents of the .pax file rather than the directory itself.

Mind you directories as a means to creating templates for drawings still need some editing where if you change the statement....
<ObjectData class="Template">
to
<ObjectData class="DrawingTemplate">

....then it works.



Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor