TheSwamp

Code Red => VB(A) => Topic started by: pvwahla on January 26, 2020, 07:04:59 PM

Title: DXF TO CUT LENGTH FOR LASER
Post by: pvwahla on January 26, 2020, 07:04:59 PM
Hi Everyone

I am looking for a solution to export cut length and number of pierces from dxf file to excel file please. This is for my laser cutting start up and to calculate the cost I need to know the cut length. The main idea is to link some program to the website so people can drag and drop their dxf files, select type of material and thickness - software in the background will do the calculation and give an instant quote. To achieve that the basic information that i would need from any dxf files is - Cut length and number of pierces in that dxf files. Is there any possible solution please to get that information ?
Title: Re: DXF TO CUT LENGTH FOR LASER
Post by: 57gmc on January 28, 2020, 11:49:11 AM
Not with VBA. You would need to develop with .NET. I would recommend the FORGE platform (https://forge.autodesk.com/) for web development.
Title: Re: DXF TO CUT LENGTH FOR LASER
Post by: BIGAL on February 03, 2020, 12:53:15 AM
Disagree not a problem heaps of solutions out there for length of objects, Lisp, dataextraction, VBA, .NET.

"export cut length and number of pierces from dxf file to excel file please" Just google will get more than enough responses.

Just find one that is close, various objects can have a length, a circle a circumference and so on.

 If its primitives it will be easy, Line,arc,circle,pline and so on. The only issue I see is blocks and hatches in your dxf.Hatches what do you do ?

Make a list with two values (("circle" 28)("pline" 54) sort the list and can total by object type and so on.

I have stuff written in VBA like 10 years ago that totals lengths.
Title: Re: DXF TO CUT LENGTH FOR LASER
Post by: BIGAL on February 03, 2020, 12:58:45 AM
This is like two topics down a starting point directly to excel.

http://www.theswamp.org/index.php?topic=46487.0