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!

Question on Modifying "New File" Menu

Status
Not open for further replies.

CADWHORE

Aerospace
Apr 20, 2007
55
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
 
Replies continue below

Recommended for you

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

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

Thanks for the reply, how do I go about adding my own tabs in the 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

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

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor