×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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?

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

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

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

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

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

(OP)
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.

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

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

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

(OP)
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.

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources