How to create a mirror feature with a Join Operation?

How to create a mirror feature with a Join Operation?

tiktuk
Advocate Advocate
597 Views
3 Replies
Message 1 of 4

How to create a mirror feature with a Join Operation?

tiktuk
Advocate
Advocate

I would like to mirror a body, it works fine except that the operation by default is set to New Feature and I want it to be a Join Feature (adsk.fusion.FeatureOperations.JoinFeatureOperation). I checked and it does not have an operations attribute to set this, like for example the Extrude Feature does.

 

So how to set this?

 

# This works
mirror_feature_input = features.mirrorFeatures.createInput(
    adsk.core.ObjectCollection.createWithArray([quarter_body]),
    length_midplane
)
mirror_feature = features.mirrorFeatures.add(mirror_feature_input)

# Would like to be able to do this
mirror_feature_input.operations = adsk.fusion.FeatureOperations.JoinFeatureOperation

 

0 Likes
Accepted solutions (1)
598 Views
3 Replies
Replies (3)
Message 2 of 4

tiktuk
Advocate
Advocate

Without being able to set up the mirror feature with the join operation I end up with two bodies instead of one, as shown in the following screen shots:

 

Screenshot 2024-04-25 at 16.10.09.pngScreenshot 2024-04-25 at 16.10.25.png

0 Likes
Message 3 of 4

CADacombs
Enthusiast
Enthusiast
Accepted solution

You may just need to include

mirror_feature_input.isCombine = True

because that property is False by default.

Message 4 of 4

tiktuk
Advocate
Advocate
Thank you so much, I must have been so focused looking for something with 'join' that I skimmed right over this..
0 Likes