Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, veryone.
I want to use some edges(Picture1) to create a loft (Picture2).
But use my code can't do it.
Thank your for your help.
Here is my code:
colChnagedEdge_1 = adsk.core.ObjectCollection.create()
colChnagedEdge_1.add(edge1)
colChnagedEdge_1.add(edge2)
colChnagedEdge_2 = adsk.core.ObjectCollection.create()
colChnagedEdge_2.add(edge3)
loftFeats = _rootComp.features.loftFeatures
loftInput = loftFeats.createInput(adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
loftSectionsObj = loftInput.loftSections
path1 = adsk.fusion.Path.create(colChnagedEdge_1, adsk.fusion.ChainedCurveOptions.connectedChainedCurves)
section1 = loftInput.loftSections.add(path1)
section1.setTangentEndCondition(adsk.core.ValueInput.createByReal(1.0))
path2 = adsk.fusion.Path.create(colChnagedEdge_2, adsk.fusion.ChainedCurveOptions.connectedChainedCurves)
section2 = loftInput.loftSections.add(path2)
section2.setTangentEndCondition(adsk.core.ValueInput.createByReal(1.0))
loftInput.isSolid = True
loftInput.isClosed = False
loftInput.isTangentEdgesMerged = False
loftFeats.add(loftInput)
Solved! Go to Solution.