Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Fill in attributes automatically

Status
Not open for further replies.

Alexbabcock

Mechanical
Nov 8, 2013
12
Hi guys,

Is there an easy way to populate the part attributes automatically? From searching it seems that you can do this by changing some sort of template file, although i cannot find what or where this file might be, and also may not have the permission to change such a file.

I have also seen that you could do it with a GRIP program, but have no experience with GRIP and cannot seem to find someone with the same need as me.

Basically, we have a set list of empty attributes linked to Teamcenter which have to be populated in order to save a part file, and when you are creating lots of parts that don't need these attributes (they're mostly N/A or -) it becomes quite time consuming.

Cheers!

(p.s i can't execute journals for some reason, get a nasty error)
 
Replies continue below

Recommended for you

I think what you might be mean by template is the pax file. I tried that a while ago with nx6 and from what I recall the attributes already have to be in the file unless your template becomes a new part.

As far as a grip, anyone would say your better off using a journal. You can record yourself creating your attributes and you should be able to playback your recorded journal in any file.

It also might be easier to just copy and paste your attributes from a sheet as well. there is an icon in toward the center on the menu next to a pair of siccors that will let you copy your attributes. Then go to another file and paste them in.
 
Thanks for the reply!

I'm not sure i follow what you say about the template - i'm OK to put set attributes into a file, as i know what i want them to be and i am simply doing the same clicks every time i save a new part to put in the same attributes.

With regards to the journal, as mentioned i can't seem to run any journals at all, i get a very unusual error about a SCRIPT_INVOKE

When you say copy the attributes, where do i find them to highlight them as such? If i go into format > database attributes, there's no way from there to copy them or anything

Cheers
 
If you need these attributes in new part files, then modify your start template part file to include them and they will be every new part after that.

Journal or GRIP if you need to enter different values for the attributes in each part. You can even do data checking if you get creative enough in your programming. I used to check for the length of certain fields with GRIP when the value was entered. Not sure journalling can do that, but VB code can, which can be integrated with your recorded journal.



"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Alex,
Here is what I did with our TC/UG setup.
I modified the "nxdm_ugs_model_templates.pax" found in the ugii\templates folder where you installed UG.
This file points to what UG part files in TC that you want to use for your seed parts and assemblies.
When you go to file-new in the Model tab you will see any changes you made in this file.
Below is a section taken from my file.

<PaletteEntry id="d1">
<References/>
<Presentation name="WMTI Model" description="WMTI Part with datum CSYS">
<PreviewImage type="UGPart" location="@DB/model-plain-1-inch-template/A"/>
</Presentation>
<ObjectData class="ModelTemplate">
<Filename>@DB/WMTI Model/A</Filename>
<Units>English</Units>
<ItemType>Item</ItemType>
<RelationType>master</RelationType>
</ObjectData>
</PaletteEntry>

We created our own seed "Model" and "Assembly" files. These contain the attributes that we want in our parts/assemblies.
For example I set the attribute "PLIST_IGNORE_MEMBER" to 1 for assemblies since we do not want to see assemblies in our BOM.
Now when ever someone starts a new assembly and they use the assembly seed part this attribute is turned on.

I also modified the "nxdm_ugs_drawing_templates.pax" and "nxdm_ugs_sheet_templates.pax" to show our specific drawings in the Drawing tab when doing file-new.

Hope this helps.

Regards
Jurgen Kreisel
Weber Manufacturing Technologies Inc.
NX 8.0 TCUA 8.3.2
 
How would i go about modifying the start template part file?
I'm afraid i don't think i am able to though as it is company set and only the admins could change it.

I'd like a GRIP program that i can run when i create each new part (that is, if i can't modify the start template) to save me some time on having to input the attributes again and again. (as mentioned, i cannot use journals)
 
Ah, just seen your post Jurgen, will give that a look!

It points to a teamcenter sounding location of >@DB/model-plain-1-mm-template/A</

I've tried looking but am unsure how to find this kind of location on my PC?
 
Alex,

On your PC go to the directory (folder) where UG is installed.
In this folder you should see a UGII folder. In this folder there will be a templates folder.
This is where you will find the file the 3 pax files I mentioned earlier.

Regards
Jurgen Kreisel
Weber Manufacturing Technologies Inc.
NX 8.0 TCUA 8.3.2
 
Sorry i don't think i was clear, i opened the nxdm_ugs_model_templates.pax and saw that it pointed to the file >@DB/model-plain-1-mm-template/A, which i thought i wanted to modify? Or are the files i want to modify all within that same folder?

Cheers
 
Alex,
This file is in Teamcenter and not on your PC.
If you want to modify the out of box file then you will need to be infodba.
I would not recommend modifying this file, you should create your own seed file and modify the pax file to point to this file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor