Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

proboolean

proboolean

Anonymous
Not applicable
451 Views
2 Replies
Message 1 of 3

proboolean

Anonymous
Not applicable

Hello

I have a big max file (20Km on 20 Km) that I want to cut into separated smaller pieces (5Km on 5Km)

I thought I could use the ProBoolean tool in a script but it doesn’t work at all

I have a few objects and I created a bounding box for that area

This is the full script:

 

newPos = $.pos
delete $
max select all
objNum = selection.count
theObjs = selection
clearSelection()
for i = 1 to 1 do (
mybox = box length:5000 width:5000 height:500
mybox.pos = newPos
print “Boolean”
ProBoolean.createBooleanObjects theObjs[i] mybox 1 1 1
convertTo theObjs[i] Editable_Poly
)

If you can help me with the script/give me a different idea that would be great

Thank you

0 Likes
452 Views
2 Replies
Replies (2)
Message 2 of 3

drew_avis
Autodesk
Autodesk

I think you have the createBooleanObjects parameters reversed - the first is operand A, and the second is an array of nodes to use as operand B.  So this would work:

 

ProBoolean.createBooleanObjects  mybox theObjs 1 1 1

 

Hope that helps,

Drew 



Drew Avis
Content Experience Designer
0 Likes
Message 3 of 3

Anonymous
Not applicable
I changed it and it still didn't work.
Isn't there an option to do a simple boolean by script? (and not ProBoolean)
I can happily attach photos to make my problem and my need clearer

Thanks
0 Likes