Introduction
This document is intended to provide a detailed guide and examples on how to define initial values 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 machining resource creation process before and after business rule setup.
Example Business Rule
Detail Explanation
Using Machining Resource Initialization business rule, we can set up the default initial values while creating any type of machining resource. To explain this business rule, we have taken example of End Mill Tool.
When user creates new End Mill Tool, "InitResourceAttributes" business rule gets executed. In given example, we have set default value of Overall Length value as 105mm, and we have locked the modification of tool parameter "Number of Flutes".
// Default values for End Mill Tool atributes Set EndMillTool = ThisObject If(EndMillTool <> NULL) { EndMillTool.MFG_OVERALL_LGTH = 105mm // 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") CoolntSyntaxAuthVal.Append("THRU") CoolntSyntaxAuthVal.Append("TAPKUL") CoolntSyntaxVP.AuthorizedValues = CoolntSyntaxAuthVal } }
Business Rule Setup
Business Rule opening Id - InitResourceAttributes_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
InitResourceAttributes.CATRule
andInitResourceAttributes.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 InitResourceAttributes_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
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.