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.
    • A Offline
      AcesHigh
      last edited by

      @ying2014

      any chance that in the path above, where you wrote "XXX", there are non standard english characters? My windows is brazilian portuguese and by DEFAULT the user path in brazilian Windows is "user/usuário"... with that "á" there.

      And several Sketchup plugins (since Sketchup moved the Plugins to the User path) seem to break because of the damn "á".

      1 Reply Last reply Reply Quote 0
      • A Offline
        AcesHigh
        last edited by

        I didn´t find any info on the thread... but does it only work on lines all on the same plane?

        or can I create a terrain mesh, create lines over the terrain mesh with ToS and then apply Street Generator?

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Seems City Street don't work with the 2015 ?
          This is curious because Sketchup.rb is effectivly present! 😲

          Erreur de chargement du fichier C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb
          Error; C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;97; invalid multibyte char (UTF-8)
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;100; syntax error, unexpected tCONSTANT, expecting ')'
          			cmd_define_streets = UI;;Command.new('Define Types…') {
          
          			                                            ^
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;100; invalid multibyte char (UTF-8)
          C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `require'
          C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `block in require_all'
          C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `each'
          C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `require_all'
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/city_gen.rb;93;in `<module;City_Gen>'
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/city_gen.rb;46;in `<top (required)>'
          C;/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb;197;in `require'
          C;/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb;197;in `load'
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/city_gen_loader.rb;43;in `register_extension'
          C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/city_gen_loader.rb;43;in `<top (required)>'
          

          folders.jpg

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • sdmitchS Offline
            sdmitch
            last edited by

            @pilou said:

            Seems City Street don't work with the 2015 ?
            This is curious because Sketchup.rb is effectivly present! 😲

            Erreur de chargement du fichier C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb
            > Error; C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;97; invalid multibyte char (UTF-8)
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;100; syntax error, unexpected tCONSTANT, expecting ')'
            > 			cmd_define_streets = UI;;Command.new('Define Types…') {
            > 
            > 			                                            ^
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb;100; invalid multibyte char (UTF-8)
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `require'
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `block in require_all'
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `each'
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/Sketchup.rb;85;in `require_all'
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/city_gen.rb;93;in `<module;City_Gen>'
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/city_gen.rb;46;in `<top (required)>'
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb;197;in `require'
            > C;/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb;197;in `load'
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/city_gen_loader.rb;43;in `register_extension'
            > C;/Users/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/city_gen_loader.rb;43;in `<top (required)>'
            

            [attachment=0:1kw1ybvh]<!-- ia0 -->folders.jpg<!-- ia0 -->[/attachment:1kw1ybvh]

            Load City_Gen Loader.rb in to Notepad++ and check the encoding. Make sure UTF-8 without BOM is selected and save.

            Nothing is worthless, it can always be used as a bad example.

            http://sdmitch.blogspot.com/

            1 Reply Last reply Reply Quote 0
            • pilouP Offline
              pilou
              last edited by

              Alas same result!

              Frenchy Pilou
              Is beautiful that please without concept!
              My Little site :)

              1 Reply Last reply Reply Quote 0
              • sdmitchS Offline
                sdmitch
                last edited by

                @pilou said:

                Alas same result!

                I recently tried this plugin and I had the same problem. Maybe I did this for all .rb files.

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

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

                  The CityGen plugins that you guys were working on are really great and I'm hoping that this will become a real city builder. We need one. Thanks for the work you have already done.

                  I see the last posts for this plugin appear to be around early 2010. Are you still working on this project?
                  I have been trying to get the plugin(s) to work and so far have managed to get the street_gen to work.
                  I can't seem to get bldg_gen going but I wondering if there should be an associated folder "bldg_gen" to go with bldg_gen.rb in the Modules folder.

                  ThomThom, you give a skp file CityBuilder_stree2.skp as a sample to test and the road centre lines are coloured which I presume is for the road categories. Where, how or what program generated this file? ie how are these lines coloured in and categorised to produce the variable road widths that your sample does?

                  Is there a link that you can share that will give some guide to installing and using CityGen and its plugings?

                  Sorry that I have so many questions but I would really love to get as much of this working as possible. I have already found that street_gen has saved me loads of time in creating streets from a centre-line CAD drawing.
                  Thanks
                  Garth

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

                    These posts are so old I don't know if anyone will pick up on this again, but I'm trying to breathe some new life into this project as I feel it's too good not to be continued.
                    I sent a message to ThomThom on the status of this project and have had a reply from him

                    *"unfortunately none of the ones that worked on this in the beginning appear to have time
                    any more. And no one have wanted to pick it up.

                    However, it's been somewhat hidden away on Google Code - ...... So I just migrated it to GitHub: https://github.com/thomthom/citygen

                    Maybe it can get better exposure there."*

                    Hopefully with this move to github it will get more exposure and someone completing and extending the code, and becoming a valuable tool in SketchUp.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      KickMe
                      last edited by

                      Thanks ThomThom for this awesome tool.

                      I managed to make it work in Sketchup 2018.

                      • Download Citelum's GitHub archive (thanks for uploading it!)
                      • Unzip it in your Plugins folder (for me C:\Users\YOURNAME\AppData\Roaming\SketchUp\SketchUp 2018\SketchUp\Plugins)
                      • Edit Plugins\citygen\modules\bldg_gen.rb, add a # before : require 'offset'

                      Cheers!

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        danhuh
                        last edited by

                        Hi I hope this thread isn't totally dead, even though the plugin is no longer supported. I'm trying to get the Street Generator to work and can't get any luck installing. I've been able to get the City Gen extension to appear in the menubar but there's no Street Generator tools available.

                        In my Plugins folder, I've placed the "city_gen.rb" along with the folder named "citygen". In this "citygen" folder, I've added the file "street_gen.rb" and the folder "street_gen" to the Modules folder. As far as I can tell, this is the extent of the install.

                        Some things I'm unclear on... where does the file "city_gen_loader.rb" go? And do the folder names have to match the .rb names exactly (my .rb file is "city_gen.rb" whereas my corresponding folder is just called "citygen", without an underscore).

                        I do get an error message from Rubyscript but it's really long so I can repost it if anyone cares to look. This is the last thing I need to sort out on this project, so I'm dying to figure this out! Thanks in advance.

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

                        Advertisement