Business Rule for NC Assembly Assignment

Introduction

This document is intended to provide a detailed guide and examples on how to set initial setup position attributes like Rough Stock, Design Part, Fixture, Feeds and Speeds Configurations, during NC Assembly assignment to setup position.

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 implementation of the business rule and its effect during NC Assembly assignment to setup position.

Example Business Rule

DELNCAssemblyAssign.CATRule

Detail Explanation

Using Business Rule for NC Assembly Assignment, we can accelerate the setup position creation process in case of part operation having Multi-Setup Positions definition. The business rule is executed during the NC Assembly assignment to setup position. The user can use this to initialize the setup position's attributes such as Rough Stock, Design Part, Fixtures, Feeds and Speeds Configuration.

Following script will explain how to initialize the attribute values using business rule.

Fetch Input object and set Feeds and Speeds configuration attributes. The input object type is "MfgSetupPosition".

set setuppos = ThisObject
//Set Feeds and Speeds Configurations
setuppos.SetAttributeString("MFG_PO_FS_KEY1","Steel Alloyed")
setuppos.SetAttributeString("MFG_PO_FS_KEY2","FACE MILLING")
setuppos.SetAttributeString("MFG_PO_FS_KEY3","NO QUALITY")

Fetch the assigned NC Assembly Setup.

setuppos.GetSetupAssembly(oSetupAssemblyInst) //Fetch NC Assembly Setup

Set Design Part Attribute.

//Set Design Part Attribute
oDesignPartInst = oSetupAssemblyInst.Find("VPMInstance", "x.Name ==\\"DesignPart\\"", True)
oDesignPartRef = oDesignPartInst.Reference
oDesignPartOcc = oDesignPartRef.ListOccurrences(oSetupAssemblyInst)->GetItem(1)
oBody = oDesignPartInst.Find("BodyFeature", "", True)
setuppos.AddGeometry("SetupDesigns", oBody, oDesignPartOcc, 1,0)

Set Stock Part Attribute.

//Set Rough Stock Attribute
oRoughStockInst = oSetupAssemblyInst.Find("VPMInstance", "x.Name ==\\"RoughStock\\"", True)
oRoughStockRef = oRoughStockInst.Reference
oRoughStockOcc = oRoughStockRef.ListOccurrences(oSetupAssemblyInst)->GetItem(1)
oStock = oRoughStockInst.Find("OpenBodyFeature", "", True)
setuppos.AddGeometry("SetupStocks", oStock, oRoughStockOcc, 1,0)

Business Rule Setup

Business Rule opening Id - DELNCAssemblyAssign_ID

The Business Rule can be executed in two different ways.

  1. 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. 

  2. CATRule/CATRuleExit: If you create the script using a CATRule, you must store the files DELNCAssemblyAssign.CATRule and DELNCAssemblyAssign.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 DELNCAssemblyAssign_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. 

 

Reference

-

Author

Person of Contact - @Sheetal MARDE 

Special Thanks to @Vivek BAGALKOT, @Pavankumar K M for providing support in this topic.