uniteWith method in python script

uniteWith method in python script

居安思危_Hu
Contributor Contributor
359 Views
3 Replies
Message 1 of 4

uniteWith method in python script

居安思危_Hu
Contributor
Contributor

When using uniteWith method to union two objects in python script, the error was displayed in the command line.

"The Boolean operation on solid and/or surface bodies failed.

Modeling Operation Error:

Error Code number is 18026"

Did anyone else notice this situation?

 

0 Likes
360 Views
3 Replies
Replies (3)
Message 2 of 4

h_eger
Mentor
Mentor

@居安思危_Hu ,

 

Which version of P3D?
Has the script ever worked?

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



0 Likes
Message 3 of 4

居安思危_Hu
Contributor
Contributor

Plant 3D version 2024

_Hu_0-1713423454307.png

It can work well if delete the marked codes. The below snip is what I need.

_Hu_1-1713423893754.png

 

 

0 Likes
Message 4 of 4

matt.worland
Collaborator
Collaborator

I see the same issue with your code in 2024 and 2025. I was able to get the cones to union and the base to union, but I could not get the base and the cones to union together. I would send to Autodesk Support to take a look. 

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"