;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Customization File for CoCreate Modeling Sheet Metal 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; The following steps are performed in this file:
;
;   o  Specification of the units valid for following length values
;   o  The load sequence for the technology data base files.
;   o  The loading of the costmodel function definition.
;   o  The activation of the settings menu (init-mbu-settings-menu)
;   o  The definition of the flat generation parameters.
;      
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Some general notes on customizing Sheet Metal:
;
;   Please copy this file to a corp, site or personal user customization
;   directory to make any adaptions.
;
;   In addition to "sha_customize" the demonstration files 
;
;      sha_demoshop.lsp, sha_shopstable.lsp and sha_costmodel.lsp
;
;   in their original directory (personality/sd_customize/SheetAdvisor)
;   should not be used for individual changes. They should be copied
;   to a corp, site or user directory as well. The loading of these files
;   is done below.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(use-package '( :marabou-ui :sheet-advisor))

(sha-store-units) 
(UNITS 1 :mm)

; Load the technology data base files.

(sha-tdb-load "sha_demoshop_func.lsp")
(sha-tdb-load "sha_shopstable.lsp")

; Load the shop(s) data
(sha-tdb-load "sha_demoshop.lsp")

; After loading all shop(s) data:
; Create the technology database browser
(Sha-create-tdb-browser) 

; Load the costmodel function necessary for the cost estimation
(sha-tdb-load "sha_costmodel.lsp")

; Load the tool functions for the parametric punch and stamp tools
(oli:sd-load-customization-file "sha_punch_functions.lsp"
				:subdirectory "SheetAdvisor/punch_fncs/"
				:which :first)
(oli:sd-load-customization-file "sha_stamp_functions.lsp"
				:subdirectory "SheetAdvisor/stamp_fncs/"
				:which :first) 


; NOTE:
; =====
; Default values for the Settings menu are defined in your shopfile.

; Don't remove the following line
(init-mbu-settings-menu)

; Compatibility remark:
; former (SD 4.xx) default settings for the flat generation which were listed
; here, are now moved into the shop definition. 
; See:  personality/sd_customize/SheetAdvisor/sha_demoshop.lsp  for example.

(sha-reset-units)
