Introduction
This document is intended to provide a detailed guide and examples on how to customize the categorization of parameters in the Parameters Panel while editing the tool parameters.
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 implementation of the business rule and its effect on parameters panel categories while editing the tool parameters.
Example Business Rule
Detail Explanation
Using this Business Rule, we can customize the categorization of parameters in the Parameters Panel while editing the tool parameters. We can Manage, Group and Set Visibility to the User Parameters, Geometry and Technology parameters.
Following script will explain how to customize the Tool Parameter Panel using business rule.
Fetch Inputs
Set ToolResource = ThisObject
if(ToolResource <> NULL)
{
Notify("BR Initiated")
// INPUT
Set InputGeomParams = Parameters->GetAttributeObject("GeometryParams")
Set InputTechnoParams = Parameters->GetAttributeObject("TechnologyParams")
Set InputUserParams = Parameters->GetAttributeObject("UserParams")For Geometry parameters, categorize Wear related parameters in "Wear Parameters" sub expander under main "Geometry" expander.
index = 1
for Name inside InputGeomParams
{
if Name.Search("WEAR")>0
OutputGeomExpanders.Append ("Wear Parameters")
else
OutputGeomExpanders.Append ("")
}For Technology parameters, put half of the parameters in "Subgroup" sub expander under main "Technology" expander.
Set MaxIndex = InputTechnoParams.Size() / 2
index = 1
for Name inside InputTechnoParams
{
if (index < MaxIndex)
OutputTechnoExpanders.Append ("")
else
OutputTechnoExpanders.Append ("Subgroup")
index = index + 1
}For User Parameters, add first parameter under main "Geometry" expander, add second and third parameter in "Subgroup" sub expander of "Technology" expander and last parameter remains in "User Parameters" expander.
Set MaxIndex = InputUserParams.Size()
index = 1
for Name inside InputUserParams
{
OutputUserParamsOrder.Append (Name)
if (index > 0 AND index < 2)
OutputUserParamExpanders.Append ("Geometry")
else if (index > 1 AND index < 4)
OutputUserParamExpanders.Append ("")
else
OutputUserParamExpanders.Append ("Technology/Subgroup")
index = index + 1
} Set Output
Parameters->SetAttributeObject("GeometryParamsExpander", OutputGeomExpanders)
Parameters->SetAttributeObject("TechnologyParamsExpander", OutputTechnoExpanders)
Parameters->SetAttributeObject("OrderedUserParams", OutputUserParamsOrder)
Parameters->SetAttributeObject("OrderedUserParamsExpander", OutputUserParamExpanders)Note: If expander name is not given, the parameter is kept in main expander. Also we can add only one Sub Expander in Geometry and Technology expanders, but it is possible to have multiple Sub Expanders in User Parameters expander.
Important Tip: User Parameters for Tools can be created by creating Custom Type and Custom Attributes on that type in Data Model Customization App (for On Premise) or in Enterprise IP Schema Specialization (for On Cloud).
Business Rule Setup
Business Rule opening Id - DELNCResourcePanelCustom_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
DELNCResourcePanelCustom.CATRuleandDELNCResourcePanelCustom.CATRuleExitin..\\resources\\knowledge\\scripts. You can then edit the CATRule file or create a new CATRule and CATRuleExit files with an Opening ID of DELNCResourcePanelCustom_IDYou 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.
Reference
-
Author
Person of Contact - @Sheetal MARDE
