Introduction
This document is intended to provide a detailed guide and examples on how to implement the business rule for NC Geometry Part initialization that is setting its instance name, reference name according to standard naming convention.
Version – Validated on 2025x FD01 (FP)
Pre-requisites: User must be assigned with Owner Role
Licenses –
- CSV (Collaborative Industry Innovator)
- NSR (NC Shop Floor Programmer) or any other role with any Machining App
Disclaimer: Licenses mentioned above are as per 2025x documentation.
Below video demonstrates the preference setting required to create the Complementary geometry part automatically and business rule setup. It also shows, how the business rule gets executed and its result.
Example Business Rule
Detail Explanation
Using business rule for NC Geometry Part Initialization, we can automatically setup the Reference Name, Instance name and descriptions of Complementary Geometry Parts (NC geometry Part) at the time of its creation.
Complementary Geometry Part is basically a physical product created to store any geometries that are input for the definition of part operation and machining operations.
In given sample code, we are defining the naming convention of complementary geometry part as "Complementary Geometry Part_" + Name of the Design Part for which we have created the Manufacturing Product and the complementary geometry part.
So, first we are fetching the design part and getting it name. Then we are setting the instance name of the Complementary Geometry Part with specific prefix addition.
//Default Name of 3DPart set NCGeomPartInstance = ThisObject if (NCGeomPartInstance <> NULL) { Notify("BR_NCGeometryPartInitialization") DesignPart = GetEditorRoots("VPMReference")->GetItem(1) //Default Instance Name //PartName = NCGeomPartInstance.PLM_ExternalID // Customize the name of complementary part with pattern of choice //Warning :: PartName should not exceed 100 characters PartName = DesignPart.Name PartName = "Complementary Geometry Part_" + PartName NCGeomPartInstance.PLM_ExternalID = PartName
Then, we can also access the reference of the part created and set its name.
NCGeomPartReference = NCGeomPartInstance.Reference if (NCGeomPartReference <> NULL) { //Default Reference Name //PartName = NCGeomPartReference.V_Name // Customize the name of complementary part with pattern of choice //Warning :: PartName should not exceed 100 characters PartName = "Complementary Geometry Part_" + PartName NCGeomPartReference.V_Name = PartName NCGeomPartReference.V_description = "The Complementary Geometry Part for " + PartName }
Important Note: Prerequisite for this business rule is the preference setting as shown in demo video. This Business Rule gets executed only if the Complementary Geometry Part is created automatically as demonstrated in video. If user creates the part manually, the business rule will not be executed.
Business Rule Setup
Business Rule opening Id - DELNCGeometryPart_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
DELNCGeometryPart.CATRule
andDELNCGeometryPart.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 DELNCGeometryPart_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
For more details, please visit user assistance.
Author
Person of Contact - @SM
Special Thanks to @VB and @P for providing support in this topic.