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] - Core [WIP] (0.1.3a) โ€” 19 September 2009

    Scheduled Pinned Locked Moved City Generator
    109 Posts 23 Posters 75.8k Views 23 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.
    • utilerU Offline
      utiler
      last edited by

      Thanks Thomas!! Neat little tool.... ๐Ÿ‘

      One thing: When you 'Define Types', the New / Edit / Delete functions do not seem to provide any options. [see attached]

      Questions:

      1. How does color get assigned to street types?
      2. The resulting road system creates an interpolating line which is hidden. Is there a way to be able to create the face as a whole so if you need to pushpull you only need to select on face...?

      An idea:

      1. Is there a way to include merging lanes such as acceleration and deceleration lanes? Maybe byway of color....? Break a line where the lane widens to two and color differently.....

      Anyhow, thanks for helping out getting it loaded. ๐ŸŽ‰ I've been asked to collaborate on an Urban Renewal Proposal so I hope to give this a try for it!

      Cheers,


      StreetGen-Dialogue.swf

      Just Curious...

      1 Reply Last reply Reply Quote 0
      • G Offline
        grakeskull
        last edited by

        HI HOW ARE YOU, THIS PLUGON IS GREAT I JUST HAVE A QUESTION. IS THERE ANY WAY THAT I BE ABLE TO GENERATE BUILDING TOO? THANKS...

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

          @Andrew: Sorry - I've yet not been able to look into this. I've gotten a leak in my ceiling I'm currently trying to deal with (along side my full time job) ๐Ÿ˜ž

          @grakeskull said:

          HI HOW ARE YOU, THIS PLUGON IS GREAT I JUST HAVE A QUESTION. IS THERE ANY WAY THAT I BE ABLE TO GENERATE BUILDING TOO? THANKS...

          Chris and Jim was working on a building module - though I don't think anything is released.

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

          1 Reply Last reply Reply Quote 0
          • utilerU Offline
            utiler
            last edited by

            No worries Thomas. Sounds like you need a Plugon....... ๐Ÿ˜‰

            Just Curious...

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

              Hi, I tried installing this plugin like what the instruction said in the readme file

              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

              But, I still get the File cannot load error "Even the file is in the correct folder".. Is there a way to fix it?

              @thomthom said:

              This plugin is a work in progress. It's made public because it is a collaboration project.
              This is in it's very early beginning, so lots of things will change, and lots of bugs are to be expected. Feel free to share your ideas or join in on this project. See this thread for the discussion of the overall project. This thread is an overview of the related modules and the development thread for the core files.

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

              Please remove any old CityGen installations prior to installing.

              Menu entry is located under the Tools menu. Should this be under Plugins you think?

              Modules

              • Street Generator

              For Module Developers
              Core and Installation Check
              You can add this code to your module to check if the core is installed and that the module is installed in the correct location.

              
              > ### CORE & INSTALLATION CHECK ### ------------------------------------------------------------------
              > # Core check
              > if not file_loaded?('city_gen.rb')
              > 	if Sketchup.find_support_file('city_gen.rb', 'Plugins') == nil
              > 		UI.messagebox('The CityGen\'s core files is missing. Install the required core files.')
              > 	else
              > 		UI.messagebox('The CityGen\'s core files is not loaded. Ensure you installed this plugin correctly.')
              > 	end
              > 	raise 'CityGen Core error.'
              > end 
              > # Correct installation check
              > if Sketchup.find_support_file('City_Gen/' + File.basename(__FILE__), 'Plugins') == nil
              > 	UI.messagebox("This module (#{File.basename(__FILE__)}) has not been installed properly. It should be installed under Plugins\\City_Gen\\")
              > 	raise 'CityGen Module path error.'
              > end
              > 
              > module City_Gen
              > 	module Some_Module
              > 		# stuff
              > 	end
              > end
              > 
              
              
              > # CHANGELOG
              > # 0.1.0a - 31.05.2009 (Thom)
              > #		 * Initial build.
              > #
              > # 0.1.1a - 31.05.2009 (Thom)
              > #		 * Change in the module error checking routine.
              > #
              > # 0.1.2a - 31.05.2009 (Thom)
              > #		 * Added version constant.
              > #
              > # 0.1.3a - 31.05.2009 (Thom)
              > #		 * Updated to the new file structure for use with Tortoise.
              > 
              
              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

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

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

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

                  Guys,

                  I hope someone can help.

                  I have loaded City-Gen (correctly, I think!).

                  When I attempt to use the plug-in (for example when I click on Tools > City Generator > Streets > Define Types, I get a pop-up box stating that*"This program cannot display the webpage"*.

                  I am not sure the plug-in would be attempting to connect to the internet.

                  Any advice, please, on how I might be able to fix this?

                  Cheers....Scotty

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

                    Under what OS? OSX? I see your profile says you use OSX and Windows.

                    There might be an issue under OSX - due to an Safari update that happened after this plugin as made.

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

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

                      Thomas,

                      thanks for taking the time to respond.

                      The problem I have exists when I am using Windows 7 OSX. I haven't tried it on Mac as yet.

                      Not sure if this helps, but my file set-up is

                      plugins > city_gen_loader.rb
                      plugins > citygen > city_gen.rb
                      plugins > citygen > modules > street_gen.rb
                      plugins > citygen > modules > webdialog > ......

                      Many thanks again for the help.

                      Cheers....Scotty

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

                        hmmm

                        If you open the Ruby Console before you try to use the tool? do you get errors?

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

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

                          Thomas,

                          there don't appear to be any error messages in the Ruby Console related to Citygen. Sorry!!

                          Cheers....Scotty

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

                            hmmm... this is strange...

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

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

                              HI Thomas, Thanks for the plugin. It's very useful.

                              One thing is that it does not work well with the "000_AdditionalPluginFolders" plugin. I use sketchup on two different computers, and use this to sync my plugins between machines. I finally placed yours on the native plugins folder and it worked.

                              Anyway, thanks, your work has saved me a lot of time.

                              Santiago

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

                                @thomthom said:

                                @utiler said:

                                Win 7, SU 8.0.4811 and Firefox 3.6.15....
                                ๐Ÿ‘

                                No - not what browser you use, what Internet Explorer version is installed? SketchUp use the Internet Explorer engine for the windows we can create with the Ruby API. The Internet Explorer engine is used by many application in similar way.

                                Given that IE is a Windows product, are there any issues with using CityGen on a mac? When I have tried to use it on a mac, the pop-up boxes for "Street Generator - Parameters" and "Street Generator - Street Types" appear but are entirely blank.

                                By the way, my files are loaded as follows:

                                Library>Application Support>Google SketchUp 8>SketchUp>Plugins>**city_gen.rb**
                                Library>Application Support>Google SketchUp 8>SketchUp>Plugins>**Citygen**>
                                Library>Application Support>Google SketchUp 8>SketchUp>Plugins>Citygen>modules>**street_gen**>
                                Library>Application Support>Google SketchUp 8>SketchUp>Plugins>Citygen>modules>**street_gen.rb**
                                

                                This seems to be a great plugin judging from what everyone has said on these posts. At the moment, I feel like the only boy in class who hasn't kissed a girl and all my classmates are telling me how good it is!! Seems all I have to look forward to is blindness and strong forearms!!

                                Cheers....Scotty

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

                                  @stuartmitch said:

                                  At the moment, I feel like the only boy in class who hasn't kissed a girl and all my classmates are telling me how good it is!!

                                  ๐Ÿ˜†

                                  Now that's a first for a description of a plugin! ๐Ÿ˜„

                                  I don't remember how the code looks like, but there is a chance the blank dialogbox is due to an Safari update that cause problems with some plugins. I'd have to look up the code first.

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

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

                                    Does an RBZ is existing for 2015 & 2016 ?

                                    Because seems actually don't works with them! ๐Ÿ˜ฎ

                                    Ps With Street generator inside if possible! ๐Ÿ˜„

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

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

                                    Advertisement