[New] Fill gaps FeatureScript

TimRice
TimRice Member, Moderator, Onshape Employees Posts: 315 image
Easily identify open gaps in surface bodies with this new custom feature with option to automatically fill the gaps and create a solid part.



https://cad.onshape.com/documents/ce40596b860ab50d657e1a25/v/93eddbbe03dde1a35dcb3d19/e/c40a2b405f618e4760ef6ebb 

Thanks to @kevin_o_toole_1 and a few others for the guidance!
Tim Rice | User Experience | Support 
Onshape, Inc.

Comments

  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    Oooooh. I I have a bunch of imported vendor "parts" that are in fact surfaces with tiny holes in them. I wonder what it will make of those?
    Thanks Owen.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • TimRice
    TimRice Member, Moderator, Onshape Employees Posts: 315 image
    @owen_sparks
    That was sort of the intent for this feature but keep in mind a broken edge may still prevent the fill from solving. If you have an import that could be made public (or shared with me) I would love to take a try at it :smiley: !
    Tim Rice | User Experience | Support 
    Onshape, Inc.
  • bruce_williams
    bruce_williams Member, Developers Posts: 842 EDU
    Just spent 6 hours repairing a file - I am happy to see this!  I dm you and would love to share some file(s).

    Any way to choose two surface or more bodies?  I have surfaces that look OK to work for 'Enclose' but fail.   Seems your routine would be just the thing!

    Thanks!
    www.accuratepattern.com
  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    TimRice said:
    @owen_sparks
    That was sort of the intent for this feature but keep in mind a broken edge may still prevent the fill from solving. If you have an import that could be made public (or shared with me) I would love to take a try at it :smiley: !
    Hi Tim.

    Awesome. 
    I've made this document public:-
    and have also shared it with you, should you wish to avoid the working in a copy of a copy scenario!

    There is a comment tagged to a problem face that might be a good test candidate.

    Cheers,
    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    just a shout to @TimRice
    Your feature found a minuscule fault in some Creo CAD for me today that allowed the conversion of a surface back into a proper part.  Nice job :+1:
    Cheers,
    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • TimRice
    TimRice Member, Moderator, Onshape Employees Posts: 315 image
    Awesome!  :)
    Tim Rice | User Experience | Support 
    Onshape, Inc.