Mirroring a surface

Mirroring a surface

dozerdroid
Enthusiast Enthusiast
444 Views
2 Replies
Message 1 of 3

Mirroring a surface

dozerdroid
Enthusiast
Enthusiast

Hi, There seems to be very few examples online of using the mirror function, I am trying to mirror a surface, creating the surface is fine but I'm having difficulty figuring out how to mirror this surface. The issue is the red highlighted line below, thanks for any assistance.

 

# the surface loft of two lines works fine
path1 = hullComponent.features.createPath(line1)
path2 = hullComponent.features.createPath(line2)
new_feature = adsk.fusion.FeatureOperations.NewBodyFeatureOperation
loft_features = hullComponent.features.loftFeatures
loft_input = loft_features.createInput(new_feature)
loft_sections = loft_input.loftSections
loft_sections.add(path1)
loft_sections.add(path2)
loft_features.add(loft_input)

 

# now I wish to mirror the surface abut the xy plane
inputEntites = adsk.core.ObjectCollection.create()
input.Entites.add( ???? ) <---------- having difficulties here
mirrorFeatures = hullComponent.features.mirrorFeatures
mirrorInput = mirrorFeatures.createInput(inputEntites, hullComponent.xYConstructionPlane)
mirrorFeature = mirrorFeatures.add(mirrorInput)

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

nnikbin
Collaborator
Collaborator
Accepted solution

There is an extra point in inputEntities in your code (input.Entities)

 

 

 

loft_feature : adsk.fusion.LoftFeature = loft_features.add(loft_input)
inputEntites = adsk.core.ObjectCollection.create()
inputEntites.add(left_feature.bodies.item(0))

 

 

 

 

Message 3 of 3

dozerdroid
Enthusiast
Enthusiast

Thank you for the response.

0 Likes