View Full Version : Sheet Metal: Saving materials
May Kung
07-26-2004, 11:36 AM
Apparently, defined materials are not a Persistent Data Setting, so I need to define them in the customization files.
So, which file does it need to get saved to? Perhaps part of sha_customize? And what would the syntax be?
Thom Ivancso
07-26-2004, 03:53 PM
Hello May,
When adding custom or new materials to Sheet Metal they need to go into your company_nameshop.lsp file. This should be a copy of the sha_demoshop.lsp file found in C:\Program Files\CoCreate\OSD_Modeling_12.1.0.7\personality\sd_customize\SheetAdvisor directory and placed into your corp customize directory.
Once you have this file copied and renamed look for the entry in the file as such:
(sha-define-shop-table "sheet_metals"
:TABLE-TITLE "Sheet Metals"
;; :MAT_ID Ident. number/string of the material e.g. "7144-0503"
;; :MATERIAL material description e.g. "UST 1405"
;; :THICK material thickness e.g. 0.88
;; :TENSILE-STRENGTH material tensile strength e.g. 280
;; :MIN_BEND_RAD minimum bending radius e.g. 0.4
;; :DENSITY material density e.g 7.8
;; :COLOR part color (representing material) e.g 10066329
;; Color values can be calculated for example with:
;; (rgb-color 1 0 0) = red
:COLUMNS
(:MAT_ID :MATERIAL :THICK :TENSILE_STRENGTH :MIN_BEND_RAD :DENSITY :COLOR)
:COLUMN-NAMES
("Mat Id" "Material" "Thick" "Tensile Strength" "Min Bend Rad" "Density" "Color")
:UNITS
(nil nil :MM :N/MM^2 :MM :G/CM^3 nil)
:CONTENTS
(
("8888-0009" "AA 5052" 1.00 255 0.4 2.7 13421772)
("8888-0003" "AA 5052" 1.60 255 0.4 2.7 13421772)
("9999-0477" "UST 1203" 1.00 280 0.4 7.8 10066329)
("9999-0344" "UST 1203" 1.25 280 0.4 7.8 10066329)
("9999-0345" "UST 1203" 1.50 280 0.4 7.8 10066329)
("9999-0346" "UST 1203" 2.00 280 0.8 7.8 10066329)
("9999-0347" "UST 1203" 3.00 280 1.0 7.8 10066329)
("9999-0348" "UST 1203" 5.00 280 2.0 7.8 10066329)
("9999-0349" "UST 1203" 10.00 280 4.0 7.8 10066329)
)
:KEY (:MATERIAL :THICK) ; The material key MUST not be changed
; A FLAT-TEXT info is not used
:HELP "sha_sheet_metals"
:BROWSER-ICON "icon_shmetals"
)
Make your material additions or changes here, look to the top of the file for explanations of what each entry means and requires.
Next take a copy of the sha_customize file from the C:\Program Files\CoCreate\OSD_Modeling_12.1.0.7\personality\sd_customize\SheetAdvisor again copy this file to your corp customize directory and add a line in it to load your new shop.lsp file like so.
(sha-tdb-load (format nil "drive:/path/companynameshop.lsp"))
Hope this helps
Cheers
Thom
May Kung
07-26-2004, 04:54 PM
Yes, that helps immensely. I'm in the middle of defining a new shop file now. Thanks!
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.