Attribute initial value not respected during Save As New Item from NX, this works different than a save as new Item in TC
example:
- In BMIDE create a custom Item Type and a property in it's revision
- set initial value to this property to "-"
- for a save as don't copy the value of this property e.g. c9_DescriptionRev
(operation descriptor set CopyfromOriginal to false)
- save an deploy
- create a attribute mapping e.g.
{ Dataset type="UGMASTER" "DB_PART_NAME" : Item.object_name /write_once /description="Part Name" "DB_PART_DESC" : Item.object_desc /write_once /description="Part Description" { Item type="C9ItemType1" "TestDescRev" : ItemRevision.c9_DescriptionRev /master=both /description="TestDescriptionRev" }}import this attribute mapping mapping (import_attr_mappings -f= -u=-p=)
- start TC
- create a Item with the custom Item Type
- see that the initial value for the c9_DescriptionRev property is "-" as expected
- change this value e.g. to "changed"
- do a save as of this Item in TC
-see that the value of the c9_DescriptionRev property for the new Item is "-" as expected
- start NX from TC
- open the custom Item with the property c9_DescriptionRev "changed"
- do a save as new Item in NX for this Item
--> see that the value "changed" is available in the new Item, it is copied from Original and NOT expected
It should work as the save as new Item in TC and should get the initial value
SolutionUser has done customization where for the custom property the "Visible" flag is set as "False" In save as descriptor. Now since this attribute is mapped, during dataset save the value for property is getting copied from source to copied object.
Currently NX has code to remove the Attributes which has CopyFromOriginal is set to false and is mapped attribute, But that is not happening since save as depository doesn't have this attribute as visible. and due to that this attribute doesn't get removed from copied part before save.
User should work with keeping "Visible" set to "True" for save as descriptor.