Introduction
This document is intended to provide a detailed guide and examples on how to edit specialized attributes of machining resource.
Version – Validated on 2025x FD01 (FP)
Pre-requisites: User must be assigned with Owner Role
Licenses –
- CSV (Collaborative Industry Innovator)
- NTT (Cutting Tool Technologist)
Disclaimer: Licenses mentioned above are as per 2025x documentation.
Below video demonstrates the business rule setup and its result observed.
Example Business Rule
Detail Explanation
With help of this business rule, we can valuate specialized attributes of the machining resource. The business rule will get executed at the end of machining resource definition.
To explain this business rule, we have taken the example of End Mill Tool.
User has created new End Mill Tool or opened an existing one and updated some tool parameter values such as cutting diameter, corner radius. When user finalizes the machining resource definition by clicking "OK", the business rule is triggered, and the name of the tool is automatically valuated based on the defined tool parameter values.
First an aggregating reference is fetched from the MfgEndMillTool and then on that reference, the attributes such as Name and Description can be valuated automatically. Let EndMillTool(MfgEndMillTool) Set EndMillTool = ThisObject if(EndMillTool <> NULL) { let PLMRepRef(VPMRepReference) set PLMRepRef = GetPLMOwner(EndMillTool) if(PLMRepRef <> NULL) { let OwningReference(VPMReference) set OwningReference = PLMRepRef.AggregatingReference let PLMTool(ResourceNCEndMillTool) set PLMTool = OwningReference if(PLMTool <> NULL) { //Set Name param PLMTool.Name = "EndMill DC" + EndMillTool.MFG_NOMINAL_DIAM + " RE" + EndMillTool.MFG_CORNER_RAD //Add Description to the tool PLMTool.V_description = "End Mill Tool with Overall Length : " + EndMillTool.MFG_OVERALL_LGTH } } }
Business Rule Setup
Business Rule opening Id - DELEndEditResourceAttributes_ID
The Business Rule can be executed in two different ways.
DataSetup App: If you create the script through DataSetup, it remains persistent in the database, is stored on the server and available to all. The script opening ID will be available under Machining Resources.
CATRule/CATRuleExit: If you create the script using a CATRule, you must store the files
DELEndEditResourceAttributes.CATRule
andDELEndEditResourceAttributes.CATRuleExit
in..\resources\knowledge\scripts
. You can then edit the CATRule file or create a new CATRule and CATRuleExit files with an Opening ID of DELEndEditResourceAttributes_ID.Note: The Opening ID cannot be changed. Be careful while using this method as the setup is done on local machine and it is not available to all users. Each user will have to do the setup individually.
How to Set Business Rule for other type of Machining Resource
Reference
-
Author
Person of Contact - @Sheetal MARDE