Lim Chee Beng
05-24-2006, 02:29 AM
Can anybody enlighten me whether we can define the following sheet metal punch (refer to cluster_oblong.jpg) using OSD cluster oblong definition? I tried the following code and it ended out with the disappointing end result as in cluster_oblong_OSD.jpg.
(sha-define-shop-table "clstr_obl"
:TABLE-TITLE "Cluster Oblong"
:COLUMNS
(:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT :TOOL_ID :DESCR
:TOOL_DIST_X :TOOL_DIST_Y :MIN_THICK :MAX_THICK :PREFERENCE :ADVICE)
:COLUMN-NAMES
("Horiz" "Vert" "Rows" "Holes/Row" "Dist x" "Dist y" "Indent" "Tool Id" "Descr"
"Tool Dist x" "Tool Dist y" "Min Thick" "Max Thick" "Pref" "Advice" )
:UNITS
(:mm :mm nil nil :mm :mm :mm nil nil :mm :mm :mm :mm nil nil)
:CONTENTS
(
( 6.35 12.70 2 2 15.85 28.55 0.000 "02023740" "N/A" 31.70 57.10 0.5 2.0 :PREF "-")
)
:KEY (:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT )
:DISPLAY (:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT :PREFERENCE :ADVICE)
:FLAT-TEXT (:TOOL_ID)
:HELP "sha_clstr_obl"
; unique, not displayable column entries
:PROF_FNC sha-clstr_obl
)
Kindly help to point out if there is mistake in the code. Thanks in advance.
(sha-define-shop-table "clstr_obl"
:TABLE-TITLE "Cluster Oblong"
:COLUMNS
(:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT :TOOL_ID :DESCR
:TOOL_DIST_X :TOOL_DIST_Y :MIN_THICK :MAX_THICK :PREFERENCE :ADVICE)
:COLUMN-NAMES
("Horiz" "Vert" "Rows" "Holes/Row" "Dist x" "Dist y" "Indent" "Tool Id" "Descr"
"Tool Dist x" "Tool Dist y" "Min Thick" "Max Thick" "Pref" "Advice" )
:UNITS
(:mm :mm nil nil :mm :mm :mm nil nil :mm :mm :mm :mm nil nil)
:CONTENTS
(
( 6.35 12.70 2 2 15.85 28.55 0.000 "02023740" "N/A" 31.70 57.10 0.5 2.0 :PREF "-")
)
:KEY (:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT )
:DISPLAY (:HORIZ :VERT :ROWS :HOLES_ROW :DIST_X :DIST_Y :INDENT :PREFERENCE :ADVICE)
:FLAT-TEXT (:TOOL_ID)
:HELP "sha_clstr_obl"
; unique, not displayable column entries
:PROF_FNC sha-clstr_obl
)
Kindly help to point out if there is mistake in the code. Thanks in advance.