Introduction
This document is intended to provide a detailed guide and examples on how to customize machining resource upgrade.
Version – Validated on 2025x FD01 (FP)
Pre-requisites: User must be assigned with Owner Role
Licenses –
- CSV (Collaborative Industry Innovator)
- NTT (Cutting Tool Technologist) or any other role which offers DataSetup App.
Disclaimer: Licenses mentioned above are as per 2025x documentation.
Below video demonstrates the setup of business rule and its effect on machining resource upgrade.
Example Business Rule
Detail Explanation
Using Machining Resource Upgrade business rule, we can set up the default initial values while upgrading any type of machining resource. To explain this business rule, we have taken example of End Mill Tool.
When user upgrades End Mill Tool, "DELNCUpgradeResource" business rule gets executed. In given example, we have locked the modification of tool parameter "Number of Flutes".
// Default values for End Mill Tool Attributes Set EndMillTool = ThisObject If(EndMillTool <> NULL) { Notify("End Mill NC-Upgrade") // Lock flute count attribute set NumFlutesVP = EndMillTool->GetAttributeValuePointer("MFG_NB_OF_FLUTES") if(NumFlutesVP <> NULL) { NumFlutesVP.Constant = true }
For parameter like Coolant Syntax, we can predefine the list of authorized values from which user can assign one value to parameter.
// Set a predefined list to coolant syntax attribute set CoolntSyntaxVP = EndMillTool->GetAttributeValuePointer("MFG_COOLNT_SNTX") if(CoolntSyntaxVP <> NULL) { CoolntSyntaxAuthVal.Append("ON") CoolntSyntaxAuthVal.Append("OFF") CoolntSyntaxAuthVal.Append("FLOOD") CoolntSyntaxAuthVal.Append("MIST") CoolntSyntaxVP.AuthorizedValues = CoolntSyntaxAuthVal } }
Similarly, we can do the setup for Face Mill Tool, Tool Holder and so on.
// Default values for Face Mill Tool Attributes Set FaceMillTool = ThisObject If(FaceMillTool <> NULL) { Notify("Face Mill NC-Upgrade") FaceMillTool.MFG_NOMINAL_DIAM = 120mm // Lock flute count attribute set NumFlutesVP = FaceMillTool->GetAttributeValuePointer("MFG_NB_OF_FLUTES") if(NumFlutesVP <> NULL) { NumFlutesVP.Constant = true } // Set a predefined list to coolant syntax attribute set CoolntSyntaxVP = FaceMillTool->GetAttributeValuePointer("MFG_COOLNT_SNTX") if(CoolntSyntaxVP <> NULL) { CoolntSyntaxAuthVal.Append("ON") CoolntSyntaxAuthVal.Append("OFF") CoolntSyntaxAuthVal.Append("FLOOD") CoolntSyntaxAuthVal.Append("MIST") CoolntSyntaxVP.AuthorizedValues = CoolntSyntaxAuthVal } } // Default values for Tool Holder attributes with 3 stages Set ToolHolder = ThisObject If(ToolHolder <> NULL) { Notify("Holder NC-Upgrade") ToolHolder.MFG_HOLDER_STAGES = 3 ToolHolder.MFG_HOLDER_LENGTH_1 = 30mm ToolHolder.MFG_DIAMETER_3 = 60mm ToolHolder.MFG_HOLDER_LENGTH_3 = 24mm ToolHolder.MFG_DIAMETER_4 = 70mm ToolHolder.MFG_CONE_DIAMETER_3 = 80mm ToolHolder.MFG_HOLDER_MAX_GAGE = 60mm }
Important Note: This Business Rule is very similar to the "InitResourceAttributes" Business Rule. The key difference between these two BRs is that the "InitResourceAttributes" BR is for setting the initial default values when creating new machining resource whereas "DELNCUpgradeResource" BR is for setting the initial default values when upgrading the tools imported from V5 or other tool managers.
Business Rule Setup
Business Rule opening Id - DELNCUpgradeResource_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
DELNCUpgradeResource.CATRule
andDELNCUpgradeResource.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 DELNCUpgradeResource_ID.You can then execute the Business Rule when upgrading tool resources.
Note: 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
For more details, please visit user assistance.
Author
Person of Contact - @Sheetal MARDE
Special Thanks to @Vivek BAGALKOT and @Pavankumar K M for providing support in this topic.