How to create a container object
Posted: Sat Jun 25, 2022 5:12 am
Is there a way to make my Feature python object a container
Its not super critical, but I would like to create my own container elements with custom icons
Im currently relying on the Part container for everything, but it would be nice to be able to create my own so tree view is clearer and easier to read
bonus question...
is there a way to set "touch alerts"(for lack of a better word.. probably just my ignorance of the framework)
eg. 1. I would like one object to recompute when another object is touched or edited
eg. 2. I would like a custom container object to recompute if any of its child object are touched
eg. 3. I would like an object to recompute when a any of its parent containers(all the way up the hierarchy to top) are moved
eg. 4. I would like an object to recompute when a any of objectX's parent containers(all the way up the hierarchy to top) are moved
My intuition says 3 and 4 may not be feasible
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.430.28641 (Git)
Build type: Release
Branch: LinkStage3
Hash: a77045488092c24ece25d63c91f362cbd2181d36
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Its not super critical, but I would like to create my own container elements with custom icons
Im currently relying on the Part container for everything, but it would be nice to be able to create my own so tree view is clearer and easier to read
bonus question...
is there a way to set "touch alerts"(for lack of a better word.. probably just my ignorance of the framework)
eg. 1. I would like one object to recompute when another object is touched or edited
eg. 2. I would like a custom container object to recompute if any of its child object are touched
eg. 3. I would like an object to recompute when a any of its parent containers(all the way up the hierarchy to top) are moved
eg. 4. I would like an object to recompute when a any of objectX's parent containers(all the way up the hierarchy to top) are moved
My intuition says 3 and 4 may not be feasible
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.430.28641 (Git)
Build type: Release
Branch: LinkStage3
Hash: a77045488092c24ece25d63c91f362cbd2181d36
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0