Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Default name for dataset under ItemRevision

I had created a dataset under ItemRevision, it seems it would take the name of Item_id/Item_rev_id.

It's there any preference to change it to defualt name of Item_id?

 

I had trid to set DATASET_saveas_pattern but it just affects the behavior of NX.

 

Thanks a lot in advance.

5 REPLIES

Re: Default name for dataset under ItemRevision

[ Edited ]

Strange, the NX naming pattern preferences are:

  • TC_ugmaster_name_separator=/
  • UGMASTER_saveas_pattern=${ItemID}/${RevisionID}
  • UGPART_saveas_pattern=${ItemID}-${RevisionID}-${UserText}
  • UGALTREP_saveas_pattern=${ItemID}-${RevisionID}-${UserText}

The global naming pattern should effect all your datasets:

  • DATASET_saveas_pattern=${ItemID}-${RevisionID}

Then be overriden by specific naming pattern preferences:

  • <dataset_type>_saveas_pattern=${ItemID}-${RevisionID}

Some more global DS prefs:

  • DATASET_saveas_allow_duplicates
  • DATASET_saveas_allow_name_modification
  • DATASET_saveas_always_copy
  • DATASET_saveas_force_name_validation
  • DATASET_saveas_never_copy
  • DATASET_saveas_owner

 

 


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Default name for dataset under ItemRevision

Nope, it don't work at all. I just wanna change the default name when I was create an new dataset under ItemRevision, but, all of pattern preferences you give was no affect.

Re: Default name for dataset under ItemRevision

Then try BMIDE, on the Business Object, Business Object Constant, "DisplayName". I use this method for disabling the Item Revision sequences:
Default (OOTB)
$item_id + "/" + $revision_id + ";" + $sequence_id + "-" $object_name
New
$item_id + "/" + $revision_id + "-" $object_name

The preferences should have worked. Did you delete the preferences shared memory after making your changes and before testing?

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Solution
Solution
Accepted by topic author Varsa
‎03-13-2017 10:13 PM

Re: Default name for dataset under ItemRevision

[ Edited ]

You need to map the property "item_id" from Item revision to dataset by using compound property.

 

then go to Business object constant and change the display name of the dataset, the value of display name should be mapped property $item_id.

 

So that display name of the property will seen as only item id.

 

But let me tell u the internal object name of the dataset will be same and it will not be affected by changing the dataset display name.

for changing the actual object name you need to write a code in ITK which is very easy.

 

Hope this solution will for work you.

Re: Default name for dataset under ItemRevision

It must write a code in ITK, other can't modified the default object_name to item_revision_id.
thx