CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Modules

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-05-2015, 01:49 AM
papadam papadam is offline
Registered User
 
Join Date: Sep 2014
Location: Switzerland
Posts: 7
Question 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
Reply With Quote
  #2  
Old 03-04-2015, 12:33 AM
papadam papadam is offline
Registered User
 
Join Date: Sep 2014
Location: Switzerland
Posts: 7
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
Then somewhere below:
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))
The variable laser-len can then be used for further calculations or direct display in the document. Thanks Andy for the hint with get_vol_prop!

Last edited by papadam; 03-14-2015 at 01:42 AM. Reason: changed code so the right part is picked
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:48 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.