Fill in attributes automatically
Fill in attributes automatically
(OP)
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)
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)





RE: Fill in attributes automatically
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.
RE: Fill in attributes automatically
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
RE: Fill in attributes automatically
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
RE: Fill in attributes automatically
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
RE: Fill in attributes automatically
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)
RE: Fill in attributes automatically
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?
RE: Fill in attributes automatically
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
RE: Fill in attributes automatically
Cheers
RE: Fill in attributes automatically
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.