5 Replies Latest reply on Jul 7, 2017 5:43 PM by Amen Allah Jlili

    Working with surface bodies from the API

    Swme Eng

      Hello all,


      I am working on a macro to fix some geometry on imported files, I am inserting a Delete Face feature, and then want to access the surfaces that are left over. I'm able to loop through bodies and get selection id's, then select the items, but I can't seem to figure out how to cast the selected bodies to ISurface objects.  Is there some object class that I should be using instead? It looks like GetSelectedObjectType returns swSelSURFACEBODIES.