Selection bug: selected object missing in getSelection()/getSelectionEx

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Selection bug: selected object missing in getSelection()/getSelectionEx

Post by DeepSOIC »

Okay, i'm really not yet into the new realthundery stuff in FreeCAD. I'm an old-fart :mrgreen:, i still live in the universe where if FreeCAD shows Cube under Cut in tree, it doesn't at all mean that the Cube is consumed or owned by Cut.

But can anyone give me some clues, what's the idea behind Cube being a subobject of Cut? Does it become suboblect because of being claimed by Cut'a claimChildren routine? Or there is some special code involved? What's the benefit of doing that? Being able to reference the Cube in its new position if Cut's Placement is nonzero?

But if Cube still also exists in its original position as Part.Box, maybe it should be shown as a direct child of Part as well? And that will solve my selection issue?
Post Reply