Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Name a body formed from a loft

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
graham.swannell
168 Views, 2 Replies

Name a body formed from a loft

My script produces sketches from which I produce a loft.  This all works fine and I have named the sketches and construction planes.  How do I name the loft so that it has a name rather than just Body1.  Thanks guys.

2 REPLIES 2
Message 2 of 3
kandennti
in reply to: graham.swannell

Hi @graham.swannell .

 

I have modified this sample.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-a03e26b4-4a3c-11e6-a2e4-3417ebd41e19 

 

・・・
        loftSectionsObj.add(profile1)
        loftSectionsObj.add(profile2)
        loftInput.isSolid = False

        # Create loft feature
        loftFeat = loftFeats.add(loftInput)

        # rename body
        for body in loftFeat.bodies:
            body.name = 'Buzz'
・・・

 

Message 3 of 3

That's terrific  -it works a treat.

Thank you very much

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report