how to trigger KF attribute when save as
how to trigger KF attribute when save as
(OP)
Hi
I have created a new Attribute ( named "lk" )in KF. - see below
@{
$path << first(flatten(ug_askAssemblyStructure( "" )));
ug_setAttrValue_("", "PART_ATTRIBUTE", "filepath", $path);
};
This will set a part attribute named "filepath" and with the value full-path and part name.
It work´s.
But when I do a save as of the part ,the attribute is not updateded. However, if I close the newly "save as" part,and open again,the attribute is updated.
But I need to have it updated at once,without to load the aprt again.
Because I will use the attribute in a Drawing template part,
Maybee someone here can trick?
lklo
I have created a new Attribute ( named "lk" )in KF. - see below
@{
$path << first(flatten(ug_askAssemblyStructure( "" )));
ug_setAttrValue_("", "PART_ATTRIBUTE", "filepath", $path);
};
This will set a part attribute named "filepath" and with the value full-path and part name.
It work´s.
But when I do a save as of the part ,the attribute is not updateded. However, if I close the newly "save as" part,and open again,the attribute is updated.
But I need to have it updated at once,without to load the aprt again.
Because I will use the attribute in a Drawing template part,
Maybee someone here can trick?
lklo





RE: how to trigger KF attribute when save as
Tools -> Update -> Update for External Change
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: how to trigger KF attribute when save as
It can be used in that way , "Tools -> Update -> Update for External Change".
But , I have read in doc that the possibillity to use a "demandvalue" in addition to tke KF attribute , so the attribute value can be forced updated .
Or am I wrong in that way ?.
If not , maybe someone here know the demandvalue command or how it can be used.?
---------------------
( I have some other part attributes set by the expression editor exmp. ug_setPartAttrValue( "catalog", ("M")+stringValue(p79)+(" x ")+stringValue(p31)).
name = CATALOG
value= M6X20
this attribute is always updated ,when expression p79 or p31 value is changed. )
--------------------
lklo
RE: how to trigger KF attribute when save as
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: how to trigger KF attribute when save as
I´m running NX8.
lklo
RE: how to trigger KF attribute when save as
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.