I have a few projects remaining that are broken, and at least one of them I want repaired. Of course I could repair it manually... but, I decided to give a start to FCTeleport, a python module aimed at repairing such broken projects
https://github.com/DeepSOIC/FCTeleport
The goals:
* function to convert a project given two revision numbers (one comes from project itself, the other can come from FreeCAD.Version)
* Basic functionality should be stand-alone. That is, this module may be used without FreeCAD at all.
* when mature, it can be merged into FreeCAD, and integrated into its UI.
* when merged, get rid of burden of maintaining backwards compatibility inside FreeCAD the hard way, and let FreeCAD improve even faster!
So far.
I wrote a simple module that can read FC project and extract some info from it.
Code: Select all
>>> from FCTeleport import FCProject
>>> p = FCProject.FCProject()
>>> p.readFile(r"C:\_vt\dev\3DPrint\87 - grinder\grinder v02.FCStd")
>>> p.findObjectsOfType("Sketcher::SketchObject")
['Sketch', 'Sketch001', 'Sketch002', 'Sketch003', 'Sketch006', 'Sketch008', 'Sketch009', 'Sketch010', 'Sketch011', 'Sketch013', 'Sketch014', 'Sketch015']
>>>