[Plugin] [CityGen] - Street Generator [WIP] (0.5.2a)
-
@thomthom said:
The image doesn't seem to load for me.
That's weird it's an imgur image. Seems to load fine here: http://i.imgur.com/JXp0Zlw.jpg?1
-
@ash. said:
I do realise this is kind of dead but did it stop working with SU 2015 because I installed it correctly the city generator is displayed in tools but the street generator isn't showing. So I can't do anything.
How did you install Street Generator? To what location?
-
@thomthom said:
@ash. said:
I do realise this is kind of dead but did it stop working with SU 2015 because I installed it correctly the city generator is displayed in tools but the street generator isn't showing. So I can't do anything.
How did you install Street Generator? To what location?
C:\Users<username>\AppData\Roaming\SketchUp\SketchUp 2015\SketchUp\Plugins I extracted citygen folder and citygen ruby here and the streetgen folder and ruby in the citygen folder. As it should?
-
That does sound right... hm...
and no errors upon startup? -
@thomthom said:
That does sound right... hm...
and no errors upon startup?Nothing, I tried on a different computer that has more or less the same plugins but SketchUp 2014 and with same result no submenu showing.
-
Hmm... I'd have to dig deeper.
(I'm sorry to be slow to respond, but I'm living out of a hotel until the end of Feb. Business trip. Really poor WiFi quality... grumble) -
I used it in sketchup2015 ,however ,when I click“create blocks”,it can't work .you can see the message:
:236:infind_blocks' C:/Users/xxx/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb:197:instreets_from_centre_lines'
C:/Users/xxx/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb:164:inselection_streets_from_centre_lines' C:/Users/xxx/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/citygen/modules/street_gen.rb:125:inblock in module:Street_Gen'
SketchUp:1:in `call' -
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 "á".
-
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?
-
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)>'
-
@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.
-
Alas same result!
-
@pilou said:
Alas same result!
I recently tried this plugin and I had the same problem. Maybe I did this for all .rb files.
-
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 -
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.
-
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!
-
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.
Advertisement