lklo
Industrial
- Nov 24, 2010
- 226
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