Name Date Size

.. 2017-12-07 18:21:18 117

As.hs 2016-03-25 20:00:16 4 KiB

Brep.hs 2013-11-29 03:57:59 6 KiB

BrepConversion 2011-06-29 10:11:45 7

HetPrinter.hs 2016-03-25 20:00:16 3.5 KiB

Logic_FreeCAD.hs 2017-12-07 18:21:18 3 KiB

Plugins 2011-06-28 02:08:27 4

PrintAs.hs 2016-03-25 20:00:16 4.2 KiB

README 2011-06-29 10:11:45 2.1 KiB

specifications 2011-06-16 11:12:10 4

test 2011-06-14 10:42:33 6

Testmain.hs 2013-11-29 03:57:59 281

Translator.hs 2016-03-25 20:00:16 6.9 KiB

VecTools.hs 2016-03-25 20:00:16 3.2 KiB

XMLPrinter.hs 2016-03-25 20:00:16 3.9 KiB

README

############# Initialization ###################################################
so far it only works on a linux box with libopencascade-dev 6.5-0 installed.
in order to build the brep_to_xml converter, go to FreeCAD/BrepConversion and
run:
make
make install
or
sudo make install
this should build a binary file 'brep_to_xml' and copy it to ~/bin if
you call make install as current user or to /bin if you call it with
sudo. Make sure that in any case the corresponding bin directory is in
your PATH environment variable. This binary is then called by Brep.hs
while running in case it reads an xml containing at least one of the
following:
rectangle
line
it is possible to skip this step, but then the program would crash, giving a
runtime error if it needs to read the details of an object from a .brp file.
############ Using the module #################################################
Compile Hets if it is not already done.
cd /path/to/Hets
make
To open the free-cad file in hets and visualize the graph, run:
./hets -i fcstd path/to/freecad/file.fcstd -g
To export the free-cad file xontent into an xml, run:
./hets -i fcstd -o fcxml path/to/freecad/file.fcstd
############# Visualising the xml outputted by Hets ############################
In order to generate the free-cad document from the xml file
generated by
./hets -i fcstd -o fcxml path/to/freecad/file.fcstd
you need free-cad-0.11 or newer.
--Go into the directory containing 'fcmacro.py', which is in
'Hets/FreeCAD/Plugins' by default;
--Open freecad from the terminal from that directory;
--Open the python interpreter within freecad if it is not already opened by
default.
--In the freecad python interpreter execute the following commands:
import fcmacro
fcmacro.fromHets('path/to/file.xml', App, Gui)
--The content should be generated automaticly and the view centered on the
collection of objects.
The output in the python interpreter should be the information from the xml.
################################################################################
################################################################################