×
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

Question on Modifying "New File" Menu

Question on Modifying "New File" Menu

Question on Modifying "New File" Menu

(OP)
I want to have my drawing own custom drawing template show up under the drawing tab of the new file menu.  Can anyone tell me how to do this?

Thanks

RE: Question on Modifying "New File" Menu

The easiest approach would be replace the current template files with new ones of the same name as found in the \UGII\templates folder.  You can also add your own customized tabs (which I've done so that I can 'demo' both the default and yet still use my own templates).

John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Question on Modifying "New File" Menu

(OP)
John,

Thanks for the reply, how do I go about adding my own tabs in the new file menu?

RE: Question on Modifying "New File" Menu

OK, first you have to setup the environment variable...

UGII_USER_DIR=<path to a user defined folder>

...in your profile.  In that folder, create another folder titled 'startup'.  In this folder place your own template files and a .pax file which defines how these files are to used.  Now to help you along, I've attached a zip file containing my model templates files and the .pax file that I'm using.

The name of the .pax file is critical. You will see that the name I used is 'ugs_amodel_templates.pax'.  Now the order that tabs are shown in the File New dialog is hard coded:  1st - Modeling, 2nd - Drafting, 3rd - Simulation, 4th - Manufacturing.  Now I wanted to ADD an additional tab and NOT replace the existing Model tab and I also wanted my tab to appear first, ahead of the default Model tab.  So the name I selected was identical to the .pax file used by the system except that I added the letter 'a' to the word model which forced my file to appear alphabetically ahead of the the default.  Now if my intentions were to REPLACE the existing Model tab, all I would have to do is remove the 'a' and then since the file names are identical, my file replaces the system file.

As for the .pax file itself, open the file with your favorite text editor and look at the contents.  It may take a bit but if you study it awhile I think you'll figure it out.  Most of the items need to remain as they are with you only needing to edit the part and image file names.  Also keep in mind that the lines...

<PaletteEntry id="d1">

...must contain a unique name inside the quotes for each entry in the file.  In the example .pax file I've included there are 4 part files, 2 model files (one English and one Metric units) and 2 assembly files (one English and one Metric units) so you will find 4 unique 'ID=' entries.

Now you also do this for Drafting templates in a similar manner, and if you would like to look at my examples, I'll gladly post them as well if you would like me to.

John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Question on Modifying "New File" Menu

(OP)
John,

Thanks for the help, your explanation is very good. I'll give this a try when I get a few free minutes.

 

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