ActiveObject NoneType

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
xc22143
Posts: 139
Joined: Fri Dec 03, 2021 9:52 am

ActiveObject NoneType

Post by xc22143 »

Hi, everyone.
The ActiveObject is NoneType after the boolean operations on the model.
Why? How to get the active object in the python console? Thank you for your help.
屏幕截图 2022-08-02 201946.png
屏幕截图 2022-08-02 201946.png (41.68 KiB) Viewed 586 times
屏幕截图 2022-08-02 201546.png
屏幕截图 2022-08-02 201546.png (8.42 KiB) Viewed 586 times
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: Release
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Chinese/China (zh_CN)
Last edited by xc22143 on Wed Aug 03, 2022 1:33 am, edited 1 time in total.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: ActiveObject NoneType

Post by openBrain »

What is the "active object" ? What criteria identifies it ?
User avatar
onekk
Veteran
Posts: 6205
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: ActiveObject NoneType

Post by onekk »

xc22143 wrote: Tue Aug 02, 2022 12:20 pm ...
Please put the information required in IMPORTANT: Please read first before asking for help

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
xc22143
Posts: 139
Joined: Fri Dec 03, 2021 9:52 am

Re: ActiveObject NoneType

Post by xc22143 »

openBrain wrote: Tue Aug 02, 2022 1:43 pm What is the "active object" ? What criteria identifies it ?
Thanks! To be honest, I don't know. In the python console, FreeCAD defines the "ActiveObject" as "the active object in the document". :?
xc22143
Posts: 139
Joined: Fri Dec 03, 2021 9:52 am

Re: ActiveObject NoneType

Post by xc22143 »

onekk wrote: Tue Aug 02, 2022 1:48 pm
xc22143 wrote: Tue Aug 02, 2022 12:20 pm ...
Please put the information required in IMPORTANT: Please read first before asking for help

Regards

Carlo D.
sorry, updated.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: ActiveObject NoneType

Post by openBrain »

xc22143 wrote: Wed Aug 03, 2022 1:40 am Thanks! To be honest, I don't know. In the python console, FreeCAD defines the "ActiveObject" as "the active object in the document". :?
Ignore what FreeCAD says. ;) What is your need?
Post Reply