README revision 21873b18f483b717cdcc2f693da9a963b7fb703a
############# 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.
################################################################################
################################################################################