Name a Detailed Fasten Reference at Creation Time (DELMA_DetailedFastenCreation_ID)

An opening ID is an entry point used to customize business logic. DELMA_DetailedFastenCreation_ID supports the detailing of the strategy for creation of the Manufacturing Items children of the Detailed Fasten reference.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

A default naming of Detailed Fasten reference by code is provided (when no CATRule file is used). Rules applied are as follows:

  • Retrieve Fastener name and keep only the 22 first characters and add “…” if name is longer than 25 characters •
  • Retrieve Manufacturing Fastener Strategy name and keep only the 22 first characters and add “…” if name is longer than 25 characters. If Value is a blank string, keep the string “NONE”.
  • Retrieve Fastener Category value. If Value is a blank string, keep the string “NONE”. Else, keep the whole string.
  • Retrieve Detailed Fasten original name (assigned automatically at creation time) and replace string “Detailed Fasten” by “DF”. Then, keep only the 22 first characters and add “…” if name is longer than 25 characters.
Finally, Detailed Fasten name is the concatenation of the 4 previous names with “_” as separator between elementary names.

If this rule doesn’t fit customer need, an openness is provided thanks to a CATRule file allowing access to the Detailed Fasten reference at its creation time. This allows for instance its rename thanks to information from the Fastener, or the Bundle, or like Manufacturing Fastener Strategy or Fastener Category names in a different order of with other truncation rules, or different information. CATRuleExit file used for Detailed Fasten naming is the following: DELMA_DetailedFastenCreation.CATRuleExit OpeningID for the CATRule file which may be created by customer is: DELMA_DetailedFastenCreation_ID The CATRule and CATRuleExit files must be located in win_b64\resources\knowledge\scripts directory of client installation.

Input Objects

Inputs Comments
ThisObject (DELFmiFunctionReference) Detailed Fasten Reference (newly created during the Replace command)
iFastenOccurrence (MfgProcessOccurrence) Fasten occurrence (on which Replace command is launched)

Sample

Sample CATRule file used for Detailed Fasten naming at creation time is the following: DELMA_DetailedFastenCreation_test.CATRule. This CATRule file is delivered as a sample but not used by default as it's not plugged in the CATRuleExit file.