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!
    πŸ”Œ Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] [CityGen] - Street Generator [WIP] (0.5.2a)

    Scheduled Pinned Locked Moved City Generator
    124 Posts 37 Posters 118.9k Views 37 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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      Don't thank anyone til you try it πŸ˜„ It was a project that was started, and got alomst no-where. Thom got some of his parts working with the street generator, but that is about the only thing that works I think.

      Post questions or comments here though. This is a project we are all keen on getting started again.

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

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

        I tried it and it works perfectly fine for my purposes. I don't know about the other parts that were planned for this project but the Street Generator does exactly what I want it to do, so thank you again. πŸ˜„

        1 Reply Last reply Reply Quote 0
        • C Offline
          caleidos4d
          last edited by

          Street Generator is FANTASTIC!!!! πŸ‘ Thanks!!

          http://www.caleidos4d.it

          1 Reply Last reply Reply Quote 0
          • H Offline
            haynesc
            last edited by

            I dont know why but I have installed the files but i get

            "The CityGen's core files is not laoded. ensure you installed this plugin correctly"

            I opened up the zips to both the core and streetgen and copied into Plugins

            why is it not working ?

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

              @haynesc said:

              I dont know why but I have installed the files but i get

              "The CityGen's core files is not laoded. ensure you installed this plugin correctly"

              I opened up the zips to both the core and streetgen and copied into Plugins

              why is it not working ?

              Because StreetGen goes into a subfolder of CityGen. The description has detailed info.

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

              1 Reply Last reply Reply Quote 0
              • iichiversiiI Offline
                iichiversii
                last edited by

                Is there any clips on the net that show this working???

                Bring on the Rain...

                1 Reply Last reply Reply Quote 0
                • H Offline
                  haynesc
                  last edited by

                  @thomthom said:

                  @haynesc said:

                  I dont know why but I have installed the files but i get

                  "The CityGen's core files is not laoded. ensure you installed this plugin correctly"

                  I opened up the zips to both the core and streetgen and copied into Plugins

                  why is it not working ?

                  Because StreetGen goes into a subfolder of CityGen. The description has detailed info.

                  Ok iv moved the files into the correct location, boot sketchup and I get no error message, now how do i use the plugin ?

                  1 Reply Last reply Reply Quote 0
                  • brookefoxB Offline
                    brookefox
                    last edited by

                    Apparently I'm being quite thick about this install. I've read the Requirements and notes several times and tried it several ways, each resulting in errors and failed loads.

                    The 'module' subfolder is an actual folder into which street gen and other such modules are placed or just a stand-in name for street gen and such?

                    city_gen_loader.rb goes under tools or plugins?

                    My current:

                    C:\Program Files (x86)\Google\Google SketchUp 8\Tools\city_gen_loader.rb
                    and also since nothing works (is this duplication a problem, for the moment?)
                    C:\Program Files (x86)\Google\Google SketchUp 8\Plugins\city_gen_loader.rb
                    C:\Program Files (x86)\Google\Google SketchUp 8\Plugins\city_gen.rb
                    C:\Program Files (x86)\Google\Google SketchUp 8\Plugins\citygen\street_gen.rb

                    I have another instance of SU running, but that shouldn't interfere should it if I shut this one down to make install changes?

                    Readme.txt from citygen modules subfolder:
                    This is the module and support folder for CityGen.
                    All .rb files in this folder is loaded by city_gen.rb.
                    Make a new folder for eah module, and place a loading .rb here.
                    Example:
                    Plugins\city_gen.rb <- Core CityGen file
                    Plugins\Gity_Gen\street_gen.rb <- Core Street Generator module file - loaded by city_gen.rb
                    Plugins\City_Gen\Street_Gen\ <- Street Generator's support folder

                    Tips appreciated.

                    http://img109.imageshack.us/img109/3946/citygenstreetgenloaderr.jpg

                    ~ Brooke

                    1 Reply Last reply Reply Quote 0
                    • brookefoxB Offline
                      brookefox
                      last edited by

                      Parameters accept but do not generate 'feet', as far as I can tell. It would be nice if the model units were enforced, if they cannot be specified otherwise, and that settings could be remembered. Sorry if that is too obvious and has been said before.

                      Any tips for this minor error in the street generated? I made sure the centerlines intersected. Green is the 60' ROW; gray is the 24' road itself, both generated from the blue centerline.

                      http://img27.imageshack.us/img27/6039/citygenstreetgenerrors3.jpg

                      ~ Brooke

                      1 Reply Last reply Reply Quote 0
                      • brookefoxB Offline
                        brookefox
                        last edited by

                        By somewhat selectively scattering and deleting, I got it to load.... Pretty unsavory process, and though I'll hang my hat on the opinion that the install instructions ain't much clearer than mud, most folks don't seem to have a problem so my problem may indeed be me.

                        Readme.txt from citygen modules subfolder:

                        This is the module and support folder for CityGen.
                        All .rb files in this folder is loaded by city_gen.rb.
                        Make a new folder for eah module, and place a loading .rb here. (Here where?)
                        Example:
                        Plugins\city_gen.rb <- Core CityGen file
                        Plugins\Gity_Gen\street_gen.rb <- Core Street Generator module file - loaded by city_gen.rb
                        Plugins\City_Gen\Street_Gen\ <- Street Generator's support folder

                        It loads and the parameters can be set but but it does not work... generate does not generate, except on the parameters screen.

                        Looks like I set params that were not workable. When I reopened TT's street model and used the default settings, streets were generated. When I tried the same on my curves the ruby console said generating but none were evident. I need to play with the params; too many segments probably that need to be dealt with by the plugin. I'll try to set to a large angle or no rounding, maybe weld the segments. Oops... it was working: I just had to click away. This was because the streets are created on layer '0' and I was on layer 'street centerlines' with other layers hidden when group editing. Perfectly reasonable.

                        http://img19.imageshack.us/img19/8131/citygenstreetgenerrors1.jpg

                        Ruby console:
                        Error: #<NoMethodError: private method split' called for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/citygen/modules/street_gen.rb:536:in string_to_hash'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/citygen/modules/street_gen.rb:118

                        ~ Brooke

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

                          The project was made quite some time ago. I, we, where rather newish to SketchUp plugins. The project was in early stages - still is because we've not had time to work on it. Information is not the best, as it was intended more for developers than users.

                          The CityGen thread points to where the modules should be installed:

                          @unknownuser said:

                          Core and Installation Check
                          This is the main file that centralise information and load the other modules.
                          Modules are located in Plugins\CityGen\modules.

                          So the Streetgen modules should go into that folder.

                          I've been wishing to update this project, but it's been too far down on my priority list. 😞

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

                          1 Reply Last reply Reply Quote 0
                          • brookefoxB Offline
                            brookefox
                            last edited by

                            @thomthom said:

                            The CityGen thread points to where the modules should be installed:

                            @unknownuser said:

                            Core and Installation Check
                            This is the main file that centralise information and load the other modules.
                            Modules are located in Plugins\CityGen\modules.

                            So the Streetgen modules should go into that folder.

                            Literally, like: Plugins\CityGen\modules\street_gen
                            or like: Plugins\CityGen\street_gen\

                            I tried both and am not sure why it is now working... I surely have it mucked up a bit with unnecessary dupes but it is working well enough, and understandably no one has the time to help figure it out.

                            Thanks for checking in and replying and for sharing the thing in the first place.

                            Oh, I see over at the City Gen thread you already clarified:
                            @unknownuser said:

                            You're missing the full path. Observe: Plugins\CityGen*modules*\

                            ~ Brooke

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

                              Yes, the instructions are a bit confusing - I know. we where changing many things very quickly when we where actively developing. That's why some notes might be somewhat inconsistent.

                              hmm... Maybe it'd be worth re-packaging as RBZ...

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

                              1 Reply Last reply Reply Quote 0
                              • brookefoxB Offline
                                brookefox
                                last edited by

                                Well, I'm all for it. I find the parameter setting applet to be clear and concise and quite elegant. An irrelevant benefit to running the routine is that errant entities are made obvious owning to how they generate more obvious 'errants'.

                                ~ Brooke

                                1 Reply Last reply Reply Quote 0
                                • brookefoxB Offline
                                  brookefox
                                  last edited by

                                  I used it to draw braided streams for planning purposes. Perhaps the street gen focus is limiting it's real applicability. (I seemed to be getting erroneous non-co-planar error msgs in the ruby console, but enough of that.) These were no done carefully and have not been cleaned up, either.

                                  http://img201.imageshack.us/img201/4680/streetgenstream1.jpg

                                  http://img718.imageshack.us/img718/5568/streetgenstream2.jpg

                                  ~ Brooke

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

                                    What is you don't do corner rounding?

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

                                    1 Reply Last reply Reply Quote 0
                                    • brookefoxB Offline
                                      brookefox
                                      last edited by

                                      Sorry I missed your post. I was working with curves, so there were no corners to be rounded.

                                      ~ Brooke

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

                                        @brookefox said:

                                        Sorry I missed your post. I was working with curves, so there were no corners to be rounded.

                                        Doesn't matter - it doesn't see Curves. So when you set the rounding to 360 you will get odd results. It wasn't meant to accept such value. Just hasn't been implemented a limit check.

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

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

                                          If you don't want rounding you should set it to 0.

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

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

                                            Oh wait... I might have confused myself.

                                            ugh... it's been so long since I worked on this project... 😞

                                            I think you might be right... 😳

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

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

                                            Advertisement