#1
|
|||
|
|||
Cost estimation for laser cutting
There is this great function in CED's (v17, soon migrating to v19) sheet metal tool for calculating cost. The parameters behind it are saved in sha_costmodel.lsp
But the tool does not calculate the laser cutting cost. Has anyone already modified the tool in order to do that? What I intend: enter the cutting cost per mm in sha_costmodel.lsp and in the report you get the cost for the whole part. Last edited by papadam; 02-05-2015 at 05:27 AM. Reason: program version added |
#2
|
|||
|
|||
Re: Cost estimation for laser cutting
This is how I solved the problem now:
Code:
(partname (flat-statistics-sd-partname sta)) ; existing line in let (pathname (marabou::flat-statistics-sd-pathname sta)) ;line added by me Code:
(setq area (sd-call-cmds (get_vol_prop :for_part :part (string-trim "\"" pathname) :area))) (setq volume (sd-call-cmds (get_vol_prop :for_part :part (string-trim "\"" pathname) :volume))) (setq laser-len (/ (- area (* 2 (/ volume thickness))) thickness)) Last edited by papadam; 03-14-2015 at 01:42 AM. Reason: changed code so the right part is picked |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|