How to create a container object

Report observations made with the new Toponaming branch.
Post Reply
Vasten
Posts: 23
Joined: Wed May 18, 2022 9:00 pm

How to create a container object

Post by Vasten »

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
chrisb
Veteran
Posts: 43617
Joined: Tue Mar 17, 2015 9:14 am

Re: How to create a container object

Post by chrisb »

Moved to Link Branch forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Vasten
Posts: 23
Joined: Wed May 18, 2022 9:00 pm

Re: How to create a container object

Post by Vasten »

chrisb wrote: Sat Jun 25, 2022 6:27 am Moved to Link Branch forum.
i am unclear why this was moved here

I am reading up on the toponaming issue

but i cant see what that has to do with my question
chrisb
Veteran
Posts: 43617
Joined: Tue Mar 17, 2015 9:14 am

Re: How to create a container object

Post by chrisb »

Vasten wrote: Sun Jun 26, 2022 6:35 am i am unclear why this was moved here
You are using the Link branch and behaviour may be specific to this branch.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply