Import/Export BTL format Wood Machine

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
rockn
Veteran
Posts: 1791
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Import/Export BTL format Wood Machine

Post by rockn »

Hello,
I want to start a module to import and export BTL file.
http://design2machine.com/btl/index.html
Description of the BTL V10.6
Example file
Basically the file list some part (wood beam in the rough) and for each some machining (process like Cut,DoubleCut,TenonMortise).
Here simple example, a beam with a simple cut at each extremity :

Code: Select all

VERSION: "BTL V10.6"
BUILD:   "10600"
[GENERAL]
PROJECTNUMBER: "001"
PROJECTNAME:   "Coupe2Extremites"
SCALEUNIT:     1
[PART]
SINGLEMEMBERNUMBER: 1
DESIGNATION:        "PieceTest"
COUNT:              1
LENGTH:             00024638
HEIGHT:             00001800
WIDTH:              00000800
PLANINGLENGTH:      00014610
STARTOFFSET:        00000200
ENDOFFSET:          00000200
UID: 001
TRANSFORMATION:     OX:00011577   OY:00-46867   OZ:00000550   XX:00000000   XY:00008192   XZ:00005736   YX:00000000   YY:000-5736   YZ:00008192
PROCESSINGQUALITY:  AUTOMATIC
PROCESSKEY:  2-010-2        CutDebut
PROCESSPARAMETERS:  P01:00000200  P02:00000000  P03:00000000  P06:00000550  P07:00000450  
PROCESSIDENT: 1
PROCESSKEY:  1-010-2        CutFin
PROCESSPARAMETERS:  P01:00024638  P02:00000000  P03:00000000  P06:00000550  P07:00000450  
PROCESSIDENT: 2
I was thinking to create an Arch Structure object for the beam and some substraction component for the process.
Like this I get a fully parametric wood project ?!
I would like to make this in python since I "know" only that.
What file in the source code of FreeCAD can I look to take example ?

Discussion about transformation and placement : viewtopic.php?f=22&t=6766
Formations - Assistance - Développement : https://freecad-france.com
PeterPNoster
Posts: 72
Joined: Mon Sep 02, 2019 8:24 pm
Location: Switzerland

Re: Import/Export BTL format Wood Machine

Post by PeterPNoster »

Hello rockn,
rockn wrote: Fri Jun 06, 2014 1:40 pm Like this I get a fully parametric wood project ?!
I'm working in a window production factory.
The challenge is, we have different raw material e.g. wood/aluminium/others, as well as different machine manufacturers.
Therefore I'm searching a standard format to exchange manufacturing information between this different machine types.
The btl format seems to be a good start for further data exchange prototyping.

Is your project evolving or still in planing phase?

Cheers, PeterPNoster
Post Reply