If I select panel I would like to know if the selected panel is from LinkGroup or inside Link.
Is it possible to do?
[solved] check if object is inside LinkGroup or inside Link
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
[solved] check if object is inside LinkGroup or inside Link
- Attachments
-
- Unnamed.FCStd
- (4.96 KiB) Downloaded 27 times
Last edited by dprojects on Mon Mar 27, 2023 5:28 pm, edited 1 time in total.
Thanks
Darek
github.com/dprojects
workbench for woodworking is available at: github.com/dprojects/Woodworking
Re: check if object is inside LinkGroup or inside Link
Code: Select all
Gui.Selection.getSelectionEx("", 0)[0].Object
Re: check if object is inside LinkGroup or inside Link
Thanks again Roy, this is what I was looking for.Roy_043 wrote: ↑Sun Mar 26, 2023 6:17 pmCode: Select all
Gui.Selection.getSelectionEx("", 0)[0].Object
Thanks
Darek
github.com/dprojects
workbench for woodworking is available at: github.com/dprojects/Woodworking