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

    Re: [Plugin] Flatten to Plane v1.2 20101023

    Scheduled Pinned Locked Moved Plugins
    77 Posts 27 Posters 80.9k Views 27 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.
    • J Offline
      JPMays
      last edited by

      Ok, will do in the morning. I'll also look up Add Faces and try that. It's quittin' time for now. Thanks.

      Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JPMays
        last edited by

        Ok, I tried Add Faces, which didn't work any better the first time, then locked up SU the second time. The only solution I've found so far is to manually do it, as shown in my earlier post. Feel free to mess around with the file though.


        test file

        Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          Your CAD drawing has lots of edges that will never be able to 'face' - like nibs to closet alcoves etc.
          The door swings are often many small segments and there's a limit to how many segments can be coerced into taking a face in one step - so the rooms won't face individually.
          It's relatively quick to draw a few rectangles over the hotel[?] rooms/alcoves and force faces to form, and then erase any unwanted edges - the Style you have set helps as the end points are clearly marked...
          Because most internal walls are single lines anyway, aren't you going to over draw with a centered wall anyway? Which rather removes the issue of adding faces to the imported CAD-layout as it's somewhat useless anyway - even it it did take faces to even single 'room' ??

          TIG

          1 Reply Last reply Reply Quote 0
          • J Offline
            JPMays
            last edited by

            Well, the intent is actually to just use this a s a diagram, with no walls. I will need to color the rooms separately, so it is necessary to have faces for each room.

            Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              It'll take 5 minutes to overdraw rectangles on the rooms to force separate faces.
              Then tidy up unwanted edges etc - presumably you'll want a line across doorways anyway ? which you don't have had the CAD line drawing accepted perfect faces anyway - the corridor color would spill into the room/entrance-area !

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                topdraft
                last edited by

                Hi TIG
                First time here. Have installed plugin "flatten" & "workplane" read all the posts above and still I am not able to get this to work. Must be missing something. SU pro8 - model component. I open the component create the work plane centered on the component select the work plane (unlocked)and the blocks within the component and start flatten from the plugin menu and..... nothing happens?
                Best Topdraft

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  @topdraft said:

                  Hi TIG
                  First time here. Have installed plugin "flatten" & "workplane" read all the posts above and still I am not able to get this to work. Must be missing something. SU pro8 - model component. I open the component create the work plane centered on the component select the work plane (unlocked)and the blocks within the component and start flatten from the plugin menu and..... nothing happens?
                  Best Topdraft
                  The one selected Workplane simply defines an 'infinite' plane in 3d onto which the vertices of the selected edges [or edges inside selected groups/components] will be projected as a 'flattened' version, when you run the tool.
                  These edges must be 'visible' [i.e. not hidden/smoothed or assigned an 'off' layer].
                  The Workplane can remain locked in place, if desired.
                  When you use the tool do so with the Ruby Console open and see if there are any error messages.
                  Are you sure nothing was made? If the plane is flat and passing through the bottom of vertical faces then the 'flattened' edge group will be entirely coincident with the other geometry and so you might not see it immediately. Use the Outliner to see if the new group exists...
                  If you are definitely getting nothing made or have inexplicable errors then can you wither post the SKP or a screenshot so that we might better understand what it is you are attempting.

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rossthompson
                    last edited by

                    Hi,

                    It looks like I am coming to the thread a little late.... I was just wandering weather it would be easy to change the script slightly so it deleted the originally selected entities and didn't create a group for the flattened entities. So bascially the selection just gets replaced with a flattened version.

                    This would be beneficial as I use the tool a lot for cleaning up imported geometry where the faces aren't quite coplanar - hence the original entities are of little use.

                    Ive had a look through the script and the code is a bit above my head.

                    Ross

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Ross

                      Make a backup copy of the .rb script for reuse when you screw-up, or decide the original is better...
                      Edit the .rb script with a plain-text editor [like Notepad.exe or Notepad++.exe - but never a wordprocessor] and find the lines [~ #104-107]
                      ### @ss.clear @ss.add(@group) ###
                      change them to read
                      ### ents.erase_entities(@ss.to_a) @group.explode ###
                      This will erase the original selection and then explode the grouped new lines...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rossthompson
                        last edited by

                        Hi TIG,

                        That worked a treat. Thank you - this is going to save me a lot of time!

                        Ross

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          Pg09
                          last edited by

                          Thank you very, very much! πŸ˜„

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mqt101
                            last edited by

                            Heloo, I can't seem to download this on my mac. Could someone help me please?

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              @mqt101 said:

                              Heloo, I can't seem to download this on my mac. Could someone help me please?
                              Explain your problem better, and we might help sort something...
                              Can't you see the download link?
                              Can't you download the file?
                              Can't you install it?
                              Can't you find the tool when it is installed?
                              Can't you use the tool when you find it?
                              etc
                              etc...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                schaferron1
                                last edited by

                                have installed this plugin through sketchucation plugin store, says installed, does not show up in tools, plugins anywhere. I have restarted sketchup 2013 3 times.

                                Thanks! πŸ˜„

                                R

                                1 Reply Last reply Reply Quote 0
                                • Dave RD Offline
                                  Dave R
                                  last edited by

                                  Is there a folder permissions issue? Make sure you have full permissions set for the Plugins folder. Did you also install workplane.rb?

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    Tseifert
                                    last edited by

                                    Is Flatten extension updated for SU 2014? I used it in SU8. Now I can't seem to load it onto SU2014 for use.

                                    Thank you,

                                    1 Reply Last reply Reply Quote 0
                                    • Dave RD Offline
                                      Dave R
                                      last edited by

                                      It works just fine in SU2014. How are did you install it? Did you also install the required WorkPlane as indicated in the first post of this thread?

                                      Screenshot - 11_5_2014 , 4_16_14 AM.png

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        Tseifert
                                        last edited by

                                        Dave R, I installed it through Smustard. I do not believe I downloaded the workplane rd plugin.

                                        Can I still do this?

                                        Thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • Dave RD Offline
                                          Dave R
                                          last edited by

                                          You should be installing the curent version of the plugin as well as WorkPlane through the Sketchucation Plugin Store. That way you can be assured of getting the most recent version. And it isn't too late to install WorkPlane.

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • TIGT Offline
                                            TIG Moderator
                                            last edited by

                                            @tseifert said:

                                            Dave R, I installed it through Smustard. I do not believe I downloaded the workplane rd plugin.

                                            Can I still do this?

                                            Thank you.
                                            My current script should only be available through the PluginStore ??
                                            So something is adrift...... πŸ˜•

                                            TIG

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

                                            Advertisement