- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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)
Solved! Go to Solution.