Extended modules > Creo Elements/Direct Sheet Metal > Creo Elements/Direct Sheet Metal customization > Stamp
  
Stamp
This chapter discusses the following topics:
Parametric Stamp Tools
Adding a Parametric Stamp Tool of an Existing Type
Parametric Stamp Tool Types
Structure of a Parametric Stamp Tool Type Definition
Parametric Stamp Tool Example
Adding a Parametric Stamp Tool Type
Non-Parametric Stamp Tools
Adding a Non-Parametric Stamp Tool and Type Entry
For the stamp process, a Creo Elements/Direct Sheet Metal shop definition file contains:
a "Stamp Types" table specifying stamp tool types (such as "Semi-pierced Rectangle").
a set of tool tables. Each of these tables specifies the dimensions and other process parameters of the individual tools of a given stamp tool type. For instance, the "Semi-pierced Rectangle" table includes a separate row for each semi-pierced rectangle tool. If a given stamp tool type is represented by a single stamp tool, the associated tool table contains only a single parameter record (a single row of table values).
The stamp operation in Creo Elements/Direct Sheet Metal always comprises two stages:
1. A cutout profile produces a cutout in the existing sheet metal part.
2. A stamp tool part filling the cutout is added to the existing sheet metal part. Creo Elements/Direct Sheet Metal automatically merges this stamp tool part with the existing sheet metal part.
Parametric Stamp Tools
As of CoCreate Sheet Metal revision 4.5, all stamp tool types specified in the sha_demoshop.lsp sample shop definition file are "parametric tools". This means that the user will select the appropriate tool dimension from a selection list at runtime. In the TDB, you (or your TDB administrator) can specify additional tool sizes by adding a row (an additional parameter record) to the associated tool table.
Adding a Parametric Stamp Tool of an Existing Type
To add a parametric stamp tool of an existing type, you need to add the new stamp tool specification (an additional row) to the associated stamp tool table. Either use the Technology Database Browser (see Adding a Stamp Tool) or edit the underlying TDB table manually.
For example, if you want to add a stamp tool of type "dmp", proceed as follows:
1. Open the shop definition file (for instance, your working copy of the sha_demoshop.lsp file; for example: my_shop.lsp).
2. Display the "Dimple" table in your shop definition file. This table is shown below.
(sha-define-shop-table "dmp"
:TABLE-TITLE "Dimple"
:COLUMNS
(:DIMPLE_DIA :DEPTH :ANG :STAMP_DIR :MIN_THICK :MAX_THICK :TOOL_ID
:DESCR :PREFERENCE :ADVICE)
:COLUMN-NAMES
("Dia" "Depth" "Ang" "Stamp Dir" "Min Thick" "Max Thick" "Tool Id"
"Descr" "Pref" "Advice")
:UNITS
(:mm :mm :deg nil :mm :mm
nil nil nil nil)
:CONTENTS
(
(7.90 0.90 90 :DOWN 1.00 1.00 "13130"
"7199" :NONPREF "-")
(9.20 1.90 110 :DOWN 1.25 1.25 "13106"
"6690" :PREF "-")
(11.10 2.10 90 :DOWN 1.25 1.25 "13128"
"7180" :PREF "-")
(20.00 0.50 90 :DOWN 1.50 1.60 "13124"
"7184" :NONPREF "-")
(8.20 0.90 90 :UP 1.25 1.25 "13306"
"7175" :PREF "-")
(11.10 1.20 90 :UP 1.25 1.25 "13308"
"7176" :NONPREF "-")
)
:KEY (:DIMPLE_DIA :DEPTH :ANG :STAMP_DIR)
:DISPLAY (:DIMPLE_DIA :DEPTH :ANG :STAMP_DIR :PREFERENCE :ADVICE)
:FLAT-TEXT (:TOOL_ID)
:HELP "sha_dmp"
; unique, not displayable column entries
:PROF_FNC sha-dmp-profile
:TOOL_FNC sha-dmp-tool
)
3. Under :CONTENTS, add a parameter data row for your additional stamp tool. An example is provided below.
(11.3 1.10 0 :UP 1.25 1.25 "13307"
"7222" :NONPREF "-")
The diameter of the stamp feature produced by this new tool is 11.3 mm. Its dimple depth is 1.1 mm. Its ID number is 13307. Its name is 7222. It is a non-preferred tool designed for a material thickness of 1.25 mm. The "-" entry is the default entry for the :ADVICE column. At runtime, the "-" entry for the :ADVICE column is dynamically replaced by the tool check result when this tool is listed in the tool selection table.
* 
For an illustrated description of the "Dimple" tool parameters, use the online help page for the "Dimple" tool type in Creo Elements/Direct Sheet Metal.
Parametric Stamp Tool Types
Due to the two-stage nature of the stamp operation, two LISP based functions are defined for each parametric stamp tool type:
The cutout profile is defined through a special LISP based function which uses a sequence of Creo Elements/Direct Modeling 2D commands to create the cutout plus its associated workplane plus adjust points. This function must be referenced in the :PROF_FNC column of the associated stamp tool table. It returns output in the form of the resulting cutout plus adjust points in the stamp tool workplane.
Like the punch tool functions, the cutout functions for the parametric stamp tools delivered with Creo Elements/Direct Sheet Metal are included in the following file, for English:
$INSTALLDIR/personality/sd_customize/SheetAdvisor/stamp_funcs/sha_stamp_functions.lsp
For all other languages, the cutout functions are included in the following file:
$INSTALLDIR/personality/<language>/sd_customize/SheetAdvisor/stamp_funcs/sha_stamp_functions.lsp
The stamp tool is defined through a special LISP based function which uses a sequence of Creo Elements/Direct Modeling commands to create the stamp tool part. This function must be referenced in the :TOOL_FNC column of the associated stamp tool table. Creo Elements/Direct Sheet Metal provides input to this function in the form of all table entries for the selected tool type as well as the sheet thickness and the current Creo Elements/Direct Modeling resolution. The function returns output in the form of the stamp tool part created in the stamp tool workplane.
Creo Elements/Direct Sheet Metal uses the 2D profile data (like punch tool profile data) to build the distance checking zones which are displayed around the stamp tool before it is placed on the sheet metal part. Once the user has positioned the tool, Creo Elements/Direct Sheet Metal applies the cutout profile, places the stamp tool part into the cutout and merges the stamp tool part with the sheet metal part.
The stamp tool functions for the parametric stamp tools delivered with Creo Elements/Direct Sheet Metal are included in the following file, for English:
$INSTALLDIR/personality/sd_customize/SheetAdvisor/stamp_funcs/sha_stamp_functions.lsp
For all other languages, the stamp tool functions are included in the following file:
$INSTALLDIR/personality/<language>/sd_customize/SheetAdvisor/stamp_funcs/sha_stamp_functions.lsp
If you want to create customized functions for your own parametric stamp tools, create a working copy of this file. Use a name such as my_stamp_func.lsp for this file.
* 
Please note that the LISP function files are not case-sensitive.
Structure of a Parametric Stamp Tool Type Definition
The Creo Elements/Direct Sheet Metal stamp tool structure is built upon LISP package definitions and stamp tool functions.
LISP Package Definitions
The sample sha_stamp_functions.lsp file supplied with Creo Elements/Direct Sheet Metal provides functions for the sheet-advisor package. It uses other functions provided through the open-lisp-interface (oli) package of Creo Elements/Direct Modeling.
(in-package :sheet-advisor)
(use-package :oli)
Functions
The :PROFILE_FNC column of each cutout profile specifies the cutout (hole) geometry which is applied before the associated stamp tool body is placed in the cutout. In terms of functionality, structure and parameters, these cutout profiles are similar to regular punch tools. See The Punch Process for details.
The :TOOL_FNC column of each stamp tool table specifies a given stamp tool function. For the sha_demoshop.lsp demo shop file, each of these functions is included in the sha_stamp_functions.lsp file. By convention, the function name starts with sha- and ends with -profile to identify a function in the Creo Elements/Direct Sheet Metal (sha) package generating the tool profile.
defun sha-<function_name>-profile
The function name declaration is followed by the tool parameters used by this function. The parameter names must match the column names specified in the tool table or the standard parameters :THICKNESS (sheet thickness) and/or :RESOLUTION (current system accuracy). The data for these parameters is taken from the columns of the associated TDB table. For instance, if parameter_1 is defined as slot_length, the applicable dimensions are taken from the slot_length column of the associated tool table. The &allow-other-keys statement deals with any other parameters not used by this function.
(
parameter_1
parameter_2
...
parameter_n
thickness
resolution
The next block (starting with let) defines the standard local variables:
result
Used as a return value.
tool-part
The name of the stamp tool part. The actual stamp tool name is supplied by the sha-tool-part function.
tool-wp
The name of the workplane where the stamp tool part will be created. The actual name is supplied by the sha-tool-wp function. The tool-wp statement provides the name of the workplane in which the stamp tool will be positioned.
(let ((result nil)
(tool-wp (sha-tool-wp)
(local-variable1 local-value1)
(... ...)
)
The next block generates the workplane where the stamp tool profile will be created. The stamp_dir tool parameter is used to decide in which direction the tool will be built. The thickness parameter can be used to ensure that the resulting stamp tool part complies with the thickness of the sheet metal part to which it will be applied. For example:
(if (equal stamp_dir :DOWN)
(create_workplane :new
:name tool-wp
:pt_dir :origin (gpnt3d 0 0 0)
:normal :x
:u_dir :neg_z
)
(create_workplane :new
:name tool-wp
:pt_dir :origin (gpnt3d 0 0 0 (-thickness))
:normal :x
:u_dir :z
)
)
The next block creates the tool profile through regular Creo Elements/Direct Modeling commands. For example:
(POLYGON
(gpnt2d ...)
(gpnt2d ...)
...
(gpnt2d ...))
(ARC :CEN_RAD_ANG
(gpnt2d ...)
radius
angle
)
The next block uses standard Creo Elements/Direct Modeling machining commands to create a solid body from the profile(s) defined above. For example:
(TURN :part tool-part :axis :z )
The next block uses a special Creo Elements/Direct Sheet Metal function to extract the stamp tool part from the existing sheet metal part.
(setq result (sha-body-of-tool-part tool-wp))
The next block deletes the stamp tool workplane and the stamp tool part.
(delete_3d (sha-absloute-name tool-wp)) (delete_3d tool-part)
The result is set to the last LISP value (which serves as the return value).
result ) )
* 
The previous sections describe the use of 2D profiles for creating a stamp tool. Alternatively, you can use an existing Creo Elements/Direct Modeling part having the topology you want to apply. You can adapt this part to the actual tool parameters. You may find this method more convenient for complex stamp tools.
Parametric Stamp Tool Example
The following section is an extract from the sample sha_stamp_functions.lsp file supplied with Creo Elements/Direct Sheet Metal. It illustrates the usage of the function syntax discussed in the previous sections. This sample section defines the function for the Extruded Flange stamp tool.
(in-package :sheet-advisor)
(use-package :oli)
;=================================================
;
; EXTRUDED FLANGE
;
;=================================================
(defun sha-ext_flange-profile
(
hole_dia
thickness

(radius (* 0.6 thickness))

(tap_thick (* 0.6 thickness))
)
(let (
(tool-wp
(sha-tool-wp))
)

(create_workplane :new

:name tool-wp
)

;********* create Profile **********
(CIRCLE :CEN_RAD
0,0

(+ (/ hole_dia 2) radius tap_thick)
)

;******** create Adjustpoints ******
(C_POINT
0,0
)

(setq result (sha-profile-of-wp tool-wp))

(delete_3d (sha-absolute-name tool-wp))
result
)
)
(defun sha-ext_flange-tool
(
hole_dia
height
stamp_dir
thickness
resolution

(radius (* 0.6 thickness))

(tap_thick (* 0.6 thickness))
)
(let ((result nil)

(tool-part (sha-tool-part))
(tool-wp
(sha-tool-wp))
)
(unless (or

(< hole_dia resolution)

(< height (+ radius resolution))

(< radius resolution)

(< tap_thick resolution)
)

(if (equal stamp_dir :DOWN) ;create a new wp for direction DOWN

(create_workplane :new

:name tool-wp

:pt_dir :origin (gpnt3d 0 0 0)
:normal :x
:u_dir :neg_z
)

(create_workplane :new ;create a new wp for direction UP
:name tool-wp

:pt_dir :origin (gpnt3d 0 0 (- thickness))
:normal :x
:u_dir :z
)
)
(POLYGON

(gpnt2d 0 (+ (/ hole_dia 2) radius))

(gpnt2d 0 (+ (/ hole_dia 2) radius tap_thick))

(gpnt2d thickness (+ (/ hole_dia 2) radius tap_thick))
)
(ARC :CEN_RAD_ANG

(gpnt2d (+ thickness radius) (+ (/ hole_dia 2) radius tap_thick))
radius

(gpnt2d thickness (+ (/ hole_dia 2) radius tap_thick))

(gpnt2d (+ thickness radius) (+ (/ hole_dia 2) tap_thick))
)
(POLYGON

(gpnt2d (+ thickness radius) (+ (/ hole_dia 2) tap_thick))

(gpnt2d (+ thickness height) (+ (/ hole_dia 2) tap_thick))

(gpnt2d (+ thickness height) (/ hole_dia 2))

(gpnt2d radius (/ hole_dia 2))
)

(ARC :CEN_RAD_ANG

(gpnt2d radius (+ (/ hole_dia 2) radius))
radius

(gpnt2d 0 (+ (/ hole_dia 2) radius))

(gpnt2d radius (/ hole_dia 2) )
)
(turn

:part tool-part
:axis :z
)

(setq result (sha-body-of-tool-part tool-part))

(delete_3d (sha-absolute-name tool-wp))

(delete_3d tool-part)
)
result
)
)
* 
Please note that the adjust points are taken from the punch tool specified in the :PROF_FNC statement near the bottom of the tool table for the stamp tool in the shop definition file.
Adding a Parametric Stamp Tool Type
By using the sample shown in the previous section as a template or by using the recorder capability of Creo Elements/Direct Modeling, you can quickly create your own custom stamp tool type. The following guided exercise shows you how to create and implement a cup-shaped dimple stamp tool type.
This guided exercise comprises the following stages:
Stage 1: Create the Cutout Profile for the Stamp Tool Part
Stage 2: Create the Stamp Tool Part
Stage 3: Declare the New Stamp Tool Type in the Stamp Types Table
Stage 4: Add the Tool Table for the New Stamp Tool Type
Stage 5: Specify the New Tool Function in the sha_customize File
Stage 6: Test the New Stamp Tool Type
Stage 1: Create the Cutout Profile for the Stamp Tool Part
In your working copy of the sha_punch_functions.lsp file (such as my_punch_func.lsp), create a new profile type entry. For the cup dimple stamp tool, you need a circular cutout profile. You can use one of the existing punch tool definitions (such as the "rnd" punch tool) for this purpose. Alternatively, you can create a new profile complete with adjust points. A sample definition of a round cutout profile is shown below.
(in-package :sheet-advisor)
(use-package :oli)
(defun sha-cup_dimple-profile
(&key
radius
height
thickness
resolution

&allow-other-keys
)
(let (

; local variable definition
(result nil)
;

(tool-wp (sha-tool-wp))

; get name for new workplane
)

(create_workplane :new
:name tool-wp
)

;******** create profile ******
(CIRCLE :CEN_RAD
0,0
radius
)

;******** create adjust points ******
(C_POINT
0,0
(gpnt2d radius 0)

(gpnt2d (* -1 radius) 0)
(gpnt2d 0 radius)

(gpnt2d 0 (* -1 radius))

(gpnt2d radius radius)

(gpnt2d (* -1 radius) radius)

(gpnt2d (* -1 radius) (* -1 radius))

(gpnt2d radius (* -1 radius))
)

;**** extract profile from workplane

(setq result (sha-profile-of-wp tool-wp))

;**** delete workplane and part

(delete_3d (sha-absolute-name tool-wp))

;**** set return value as last entry
result
)
)
Stage 2: Create the Stamp Tool Part
In your working copy of the sha_stamp_functions.lsp file (such as my_stamp_func.lsp), create a new tool type entry. You have a choice of three methods:
You can use a recorder file to record a regular Creo Elements/Direct Modeling session in which you create the stamp tool part plus its workplane. Then make the geometry generation statements parametric. Be sure to catch to the active workplane only. Catch Parts must be disabled.
You can edit a copy of an existing LISP based stamp tool function.
You can write a LISP based stamp tool function "from scratch".
The following sample generates a workplane plus the profile and the body of a custom stamp tool.
(in-package :sheet-advisor)
(use-package :oli)
(defun sha-cup_dimple-tool
(&key
radius
height
thickness
resolution

&allow-other-keys
)
(let (

; local variable definition
(result nil)
;

(tool-part (sha-tool-part)) ; get name for new part

(tool-wp (sha-tool-wp))

; get name for new workplane
)

(create_workplane :new
:name tool-wp
:norm_wp
:origin 0,0,0
:normal :u
)

;******** create profile ******

(LINE :TWO_POINTS (gpnt2d 0 height) (gpnt2d -1 height))

(ARC :SMOOTH (gpnt2d 0 height) (gpnt2d radius 0))

(DELETE_2D (gpnt2d -1 height))

(LINE :TWO_POINTS (gpnt2d 0 height) (gpnt2d 0 (* -1 (- thickness height))))

(MOVE_2D :SELECT (gpnt2d radius 0) :VERTICAL (* -1 thickness) :KEEP :ON)

(LINE :TWO_POINTS (gpnt2d radius 0) (gpnt2d radius (* -1 thickness) ))

;******** create tool part ******

(TURN :PART tool-part :AXIS :V)

;**** extract body of part for function result

(setq result (sha-body-of-tool-part tool-part))

;**** delete workplane and part

(delete_3d (sha-absolute-name tool-wp))

(delete_3d tool-part)

;**** set return value as last entry
result
)
)
* 
Make sure that the stamp tool definition is compatible with the associated cutout profile.
Stage 3: Declare the New Stamp Tool Type in the Stamp Types Table
Proceed as follows:
1. Open your shop definition file (your working copy of the sha_demoshop.lsp file; for example: my_shop.lsp).
2. Scroll to the "Stamp Types" table.
3. Add the name of your new "Cup Dimple" stamp tool type. The resulting "Stamp Types" table is shown below.
(sha-define-shop-table "stamps"
:TABLE-TITLE "Stamp Types"
:COLUMNS
( :TOOL_TYPE :DESCRIPTION ) ; The :TOOL_TYPE column must exist
:COLUMN-NAMES ("Tool Type" "Description")
:UNITS
( nil nil )
:CONTENTS
( ; v localizable names
("csnk_rnd" "Countersink Round")
("spp" "Semipierced Protrusion")
("spr" "Semipierced Rectangle")
("cup_dmp" "Cup Dimple")
("dmp" "Dimple")
("dmph" "Dimple With Hole")
...
Stage 4: Add the Tool Table for the New Stamp Tool Type
Proceed as follows:
1. Copy an existing tool table or create a new tool table in the shop definition file.
2. In this table, specify the parameter records (dimensions, ID, advice marker, etc) for the new tool type.
3. In the :PROF_FNC line, specify the name of the cutout profile function associated with your new stamp tool type.
4. In the :TOOL_FNC line, specify the name of the stamp tool function.
An example of a tool table for the new "Cup Dimple" tool type is provided below.
(sha-define-shop-table "cup_dmp"

:TABLE-TITLE "Cup Dimple"
:COLUMNS
(:RADIUS
:HEIGHT
:ANG :STAMP_DIR
:MIN_THICK
:MAX_THICK :TOOL_ID
:DESCR
:PREFERENCE :ADVICE)
:COLUMN-NAMES
("Radius"

"Height" "Ang" "Stamp Dir"

"Min Thick" "Max Thick"
"Tool Id"
"Descr" "Pref"
"Advice")
:UNITS
(:mm
:mm
:deg
nil
:mm
:mm
nil
nil
nil
nil)
:CONTENTS
(
(5.00
1.70
90
:DOWN
1.00
1.60
"12899"
"6602" :PREF
"-")
(10.00
2.70
180
:UP
1.25
1.65
"12109"
"6690" :PREF
"-")
)

:KEY (:RADIUS :HEIGHT :ANG :STAMP_DIR)

:DISPLAY (:RADIUS :HEIGHT :ANG :STAMP_DIR :PREFERENCE :ADVICE)

:FLAT-TEXT (:TOOL_ID)
; :HELP "sha_dmp"
; unique, not displayable column entries

:PROF_FNC sha-cup_dimple-profile

:TOOL_FNC sha-cup_dimple-tool
)
* 
Make sure that your customized shop file is specified in the
sha_customize file. See Implementing Customized TDB Files for details.
Stage 5: Specify the New Tool Function in the sha_customize File
To ensure that your new tool function is loaded automatically when Creo Elements/Direct Sheet Metal starts, you need to specify the tool function in your sha_customize file.
For instance, if your customized punch (and cutout) tool function file is named my_punch_func.lsp and your customized stamp tool function file is named my_stamp_func.lsp, you need to append the following lines to your sha_customize file:
(sha-tdb-load "my_punch_func.lsp")
(sha-tdb-load "my_stamp_func.lsp")
Stage 6: Test the New Stamp Tool Type
Perform the following steps to test your new stamp tool type:
1. Use one of the following methods to load your new stamp tool type in Creo Elements/Direct Sheet Metal:
Restart Creo Elements/Direct Sheet Metal
or
If Creo Elements/Direct Sheet Metal is already running, click on the command line at the bottom of the Creo Elements/Direct Sheet Metal window and enter the following command to load the shop definition file:
(sha-tdb-load "my_shop.lsp")
2. In the Stamp menu, select Cup Dimple.
3. Click on Tools. The new cup dimple punch tools are now listed in a separate selection list.
4. Select and apply the cup dimple tool of your choice. The result of this operation should resemble the following example.
Figure 183. Figure 5. Cup Dimple Stamp Feature
5. Explore the resulting stamp feature.
Non-Parametric Stamp Tools
In addition to parametric stamp tool types, a number of non-parametric stamp tool types are provided for use at your discretion. A non-parametric tool is defined by a single parameter record. This implies that such a tool is available in a single size only.
If you want use any of these predefined non-parametric stamp tools, declare its tool type in the "Stamp Types" table in the shop definition file. Then add the associated tool table to the shop definition file. An illustrated example of the method is provided in Adding a Non-Parametric Stamp Tool and Type Entry below.
Alternatively, you can create your own non-parametric stamp tools "from scratch". The method is described in brief on the following pages.
Adding a Non-Parametric Stamp Tool and Type Entry
If you want to add a non-parametric stamp tool type to your TDB, complete the following steps:
Stage 1: Create the Cutout Profile Plus Adjust Points
Stage 2: Create the Stamp Tool Part
Stage 3: Define the New Stamp Tool Type in the Shop Definition File
The methodology is similar to the approach described in Adding a Parametric Stamp Tool Type. However, the creation of the stamp tool part is simpler for non-parametric tools.
Stage 1: Create the Cutout Profile Plus Adjust Points
Proceed as follows to create the cutout profile for a non-parametric stamp tool:
1. Use Creo Elements/Direct Modeling Create 2D commands or associated macro commands to create the new cutout profile plus workplane. Make sure that the profile is centered around the origin and that the new cutout profile complies with the outer contours of the stamp tool part you are about to design.
2. Add 2D construction point which can serve as adjust points. Make sure that the "central" adjust point is located at the origin (0,0).
3. Save the workplane in 3D format in the default directory for Creo Elements/Direct Sheet Metal stamp tools or in your own stamp tool directory. The default directory is:
$INSTALLDIR/personality/SheetAdvisor/stamp
* 
Creo Elements/Direct Modeling loads the workplane and part information from the directories that are specified as search directories. To add a directory to the search directories, use the following syntax:
(SEARCH_DIRECTORIES :append "$INSTALLDIR/personality/SheetAdvisor/stamp")
Alternatively, specify the full pathname for the file in which you want to save the workplane plus profile of your new cutout profile. For example, if your name is Jane and you want to save the new cutout profile in your Home directory, specify a pathname plus filename such as:
/users/jane/cutout_X.sdw
If the Top Level Instance File button in the File menu is switched off, Creo Elements/Direct Modeling will automatically create the associated .sdwc file along with the .sdw file. If this button is switched on, only a single file (.sdwc) is generated. You can use either method.
Stage 2: Create the Stamp Tool Part
Proceed as follows to create the a non-parametric stamp tool:
1. Use Creo Elements/Direct Modeling commands to create the stamp tool part. Make sure that the outer contours of this part coincide with its associated cutout profile.
* 
If you create a non-parametric stamp tool, whose thickness you intend to modify dynamically, you must create the stamp tool part with a thickness of exactly 1mm.
2. Save the new stamp tool part without any workplane in 3D Data format in the default directory for Creo Elements/Direct Sheet Metal stamp tools or in your own stamp tool directory. The default directory is:
$INSTALLDIR/personality/SheetAdvisor/stamp
Specify a filename by which the tool is easily identified (for example: emboss_X.sdp).
Alternatively, specify the full pathname for the file in which you want to save the new stamp tool part. For example, if your name is Jane and you want to save the new stamp tool part in your Home directory, specify a pathname plus filename such as:
/users/jane/emboss_X.sdp
If the Top Level Instance File button in the File menu is switched off, Creo Elements/Direct Modeling will automatically create the associated .sdpc file along with the .sdp file. If this button is switched on, only a single file (.sdpc) is generated. You can use either method.
Make sure that the directory in which you store your new tool file is specified in your Creo Elements/Direct Sheet Metal customization file. If you saved the new tool in the default stamp tool directory, you do not need to specify the full pathname.
Stage 3: Define the New Stamp Tool Type in the Shop Definition File
When you have created both the cutout profile and the stamp tool part, proceed as follows to include both entities in your shop definition file:
1. Open your shop definition file (your working copy of the sha_demoshop.lsp file; for example: my_shop.lsp).
2. Scroll to the "Stamp Types" table.
3. Add the name of your new stamp tool type (such as Embossed X). The resulting "Stamp Types" table is shown below.
(sha-define-shop-table "stamps"
:TABLE-TITLE "Stamp Types"
:COLUMNS
( :TOOL_TYPE :DESCRIPTION ) ; The :TOOL_TYPE column must exist
:COLUMN-NAMES
("Tool Type" "Description")
:UNITS ( nil nil )
:CONTENTS
( ; v localizable names
("emboss_x" "Embossed X")
("csnk_rnd" "Countersink Round")
("spp" "Semipierced Protrusion")
("spr" "Semipierced Rectangle")
("cup_dmp" "Cup Dimple")
("dmp" "Dimple")
("dmph" "Dimple With Hole"
)
4. In the Stamp Tools section of your shop definition file, copy an existing stamp tool table or add a new stamp tool table.
5. Make sure that this table has a :PROF_WP column and a :TOOL_PART column. Due to the non-parametric nature of your new stamp tool, you do not need a :PROF_FNC or :TOOL_FNC entry in the tool table.
6. For the :PROF_WP column, specify the name of the .sdw file in which you saved the workplane plus cutout profile.
7. For the :TOOL_FNC column, specify the name of the .sdp file in which you saved the stamp tool part.
A sample tool table for a non-parametric stamp tool is shown below.
(sha-define-shop-table "letter_a"
:TABLE-TITLE "Letter A"
:COLUMNS
(:LENGTH :WIDTH :STAMP_DIR :DESCR :TOOL_ID :MIN_THICK :MAX_THICK
:PROF_WP :TOOL_PART :ADVICE)
:COLUMN-NAMES
("Length" "Width" "Stamp Dir" "Descr" "Tool Id" "Min Thick" "Max Thick"
"Prof WP" "Tool Part" "Advice")
:UNITS (:mm :mm nil nil nil :mm :mm
nil nil nil)
:CONTENTS
(
(25 16 :UP "A #1" "AA11" 1.00 1.50
"/users/Jane/cutout_X.sdw" "/users/Jane/emboss_X.sdp" "-")
)
:KEY (:LENGTH :WIDTH :STAMP_DIR)
:DISPLAY (:LENGTH :WIDTH :STAMP_DIR :ADVICE)
:FLAT-TEXT (:TOOL_ID)
)
* 
If the thickness of the new stamp tool is not to be modified dynamically, add a column: DESIGN_THICK, to the shop-table.
* 
Make sure that your customized shop file is specified in the sha_customize file. See Implementing Customized TDB Files for details.