Import/Export BTL format Wood Machine

A forum dedicated to the Arch and BIM workbenches development.
User avatar
rockn
Posts: 1508
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Import/Export BTL format Wood Machine

Postby rockn » Fri Jun 06, 2014 1:40 pm

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 et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad