Exemple1 : Update P&ID LineID member attribute from a Requirement specification
SUMMARY:
Here's a script allowing to, by selecting a logical instance referring to a line ID, to update all members of this line ID from the requirement specification it is linked to.
The script, from the selected pipe instance, finds its line ID. Then it goes through every implement link starting from this line ID's reference and if the object is a requirement specification, it will go through every requirement and parameter contained in the requirement specification and set it on the line ID's reference, or compute the adequate value depending on the need.
Then, it will force the attribute values from the line ID's reference to all the logical instances referring to our line ID.
RECORDING
SCRIPT SAMPLE