sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    Deleting all hidden geometry

    Scheduled Pinned Locked Moved Developers' Forum
    18 Posts 6 Posters 19.0k Views 6 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.
    • thomthomT
      thomthom
      last edited by

      hmm... Maybe removing the DC attributes before erasing..?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply
      Reply Quote 0
      • thomthomT
        thomthom
        last edited by

        But only remove components located inside DCs?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply
        Reply Quote 0
        • E
          ericschimel
          last edited by

          Removing the hidden ones just inside the DC's would be nice if the script could be that smart... Not necessary though... It could just delete all hidden geometry in the model...

          Do you think there is a way to make a plugin that would strip DC's of all their "smartness"?

          -Eric
          http://plugin.sketchthis.net
          Sketchup Kitchen Design Plugin
          Custom Models

          1 Reply Last reply
          Reply Quote 0
          • thomthomT
            thomthom
            last edited by

            It's possible to remove the attribute_dictionaries, yes. It's from them you can detect if a component is a DC.
            But I'm not sure about any observers attached to the DC. Maybe there's some hidden API to control that..?

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply
            Reply Quote 0
            • E
              ericschimel
              last edited by

              That would be nice if you could do that....

              However, simply exploding everything in the model should cause the DC's to lose all their attributes anyway...

              As long as I can get rid of the hidden geometry, which shows itself when exploded, I would be good...

              -Eric
              http://plugin.sketchthis.net
              Sketchup Kitchen Design Plugin
              Custom Models

              1 Reply Last reply
              Reply Quote 0
              • J
                Jim
                last edited by

                @thomthom said:

                But I'm not sure about any observers attached to the DC. Maybe there's some hidden API to control that..?

                @unknownuser said:

                However, simply exploding everything in the model should cause the DC's to lose all their attributes anyway...

                I'm not 100% certain of how they work internally, but it would seem if simply exploding a DC and vaporizing the attribute dictionary caused a failure of SketchUp, it would be a major issue and would have come up already.

                Hi

                1 Reply Last reply
                Reply Quote 0
                • E
                  ericschimel
                  last edited by

                  I just realized that I would have to "Purge Unused" from the model as well to get rid of all the components...

                  I would assume that is easy to access via ruby as well....

                  -Eric
                  http://plugin.sketchthis.net
                  Sketchup Kitchen Design Plugin
                  Custom Models

                  1 Reply Last reply
                  Reply Quote 0
                  • thomthomT
                    thomthom
                    last edited by

                    @unknownuser said:

                    I just realized that I would have to "Purge Unused" from the model as well to get rid of all the components...

                    I would assume that is easy to access via ruby as well....

                    Yes.

                    I won't have time to look at this for a few days - if any of the other scripters got a few spare minutes..?

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply
                    Reply Quote 0
                    • E
                      ericschimel
                      last edited by

                      Don't let me stop you if you want to... I was just trying to get a sense of the possibility of all of this. Im going to start researching the Ruby code site and see what I can come up with...

                      -Eric
                      http://plugin.sketchthis.net
                      Sketchup Kitchen Design Plugin
                      Custom Models

                      1 Reply Last reply
                      Reply Quote 0
                      • thomthomT
                        thomthom
                        last edited by

                        Well, it's a nice little starter project if you're new to ruby and sketchup plugin scripting.

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply
                        Reply Quote 0
                        • jcztJ
                          jczt
                          last edited by

                          Hello to all,

                          12 years later... Sorry.

                          I am working on model with a lot of DCs, and the .csv export of "attrreporter.rb" takes several time.

                          The TomTom's solution "model.save" maybe can hepl me.

                          Does Someone keep it safe?

                          Thank you for your answers.

                          Julien

                          1 Reply Last reply
                          Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement