Objects in refecence python script

Hi, I’m developing a script to make sections based on cplanes position.
I did a similar script with rhinoscript and it was able to section objects in file and objects in reference, now with python I cannot do it, do you have any ideas to solve this issue?

Without your code, no.

– Dale

Hi @dale thank you for the attenction, here the code:
Ecxept for this issue abour reference objects everything works well