README revision 716432da1e7210071d5da4c4b27ef54532c01c71
############# 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
sudo make install
this should build a binary file 'brep_to_xml' in /bin, which is 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.
################################################################################
################################################################################