sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Geometry in which group after boolean subtract??

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 296 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wawmsey7
      last edited by

      If you have two groups and do a boolean subtract on one to the other then what group does the resulting geometry end up in??

      so for example....

      result = group2.subtract(group1)
      The group isn't called 'result' because if I do 'result.class' I get 'NilClass' and neither is it called group1 or group2 (original groups) because if I type these in I get a reference to a deleted entity - #<Deleted Entity:0x7fd36ac90d70>. So how do I get a reference to this new resultant group??

      Thanks
      Matt

      1 Reply Last reply Reply Quote 0
      • W Offline
        wawmsey7
        last edited by

        **my own stupidity - the subtract was done within a defined method so just couldn't access it outside it..

        putting @ in front solved it... @result

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          Also, if the subtract statement is the last one evaluated in the method, it's result will be the return object from the method itself.

          Otherwise you can insert a statement like: return result as the last statement.

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement