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: 

Select only Profiles without inner loops

1 REPLY 1
Reply
Message 1 of 2
shurkan
120 Views, 1 Reply

Select only Profiles without inner loops

Hello

 

I am trying to select profiles in a sketch that are not containing inner loops.

I can select profiles with one or more inner loops but I am not able to select the others.

profiles = adsk.core.ObjectCollection.create()
for profile in sketch.profiles:
            loops = profile.profileLoops
            if loops.count > 1:
                profiles.add(profile)

I want to select this profiles:

pic.png

Can Anybody help?

I am new to programming and the API.

Many thanks in advance!!

1 REPLY 1
Message 2 of 2
shurkan
in reply to: shurkan

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