First, congratulations on the beautiful work of developing this sensational tool.
I'm a civil engineer and I'm starting to learn FreeCAD.
English is not my native language, so I apologize for the translation.
I have great interest in BIM tools, and since FreeCAD is an open and developing tool, I would like to contribute a bit.
I noticed that the FRC still does not have a tool similar to Autodesk's Naviswork, so I'm trying (with what little I know of python) to create a macro that simulates the progress of a work, changing the view of the objects in the FRC according to a Gantt chart.
It's just a start ...
In the post viewtopic.php?t=15865 the basis for the development of the Gantt chart was launched, but I believe that this should not be the focus of the FRC, since there are already many tools in the market for this purpose and professionals (at least in the market where they work) will prefer Continue to use these known softs.
The idea is to use the data in the xml file generated by the software LIBREPROJECT (alternative opensource to MSProject), create link with the ARCH objects and change the transparency of the objects according to the sequence of dates of the work.
Help me please:
1 - xml file data is read and generate a list dictionary where the data of each Gantt task is stored.
2- to make the connection of the xml data with the FRC objects:
Code: Select all
obj = FreeCAD.ActiveDocument.Objects for o in obj: if hasattr(o,"Proxy"): o.addProperty("App::PropertyList","taskData","Tasks","Task data list") # property list with the data of each Gantt task
Code: Select all
c = FreeCAD.ActiveDocument.getObjectsByLabel('Wall') c.taskData = [1,2,3]
File "<input>", line 1, in <module>
AttributeError: 'list' object has no attribute 'taskData'
In the post viewtopic.php?f=23&t=5197&p=41118&hilit ... ion#p41118 Yorik gave an example of use but is not working.
Any help will be appreciated!
OS: Windows 7
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.6704 (Git)
Build type: Release
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17