a SketchUp Extension generates a lot of building shapes in seconds
- select some groups or components
- click a toolbar icon (from left to right:generate with details/generate without details/reset to a cube/pattern manager)
- when manager is hidden, generation is random. choose a pattern, generation is fixed.
-
depending on the height and the class of target, random generation will choose from four categories.
- h<24m h>24m Group TierBuilding Skyscraper Component Villa Apartment -
patterns are saved as mgz file in JSON.and files are in the default extensions folder. (C:\Users\Administrator\AppData\Roaming\SketchUp\SketchUp 2018\SketchUp\Plugins\Zhouxi_Magiz\Resource).every mgz file in this folder will be loaded when SketchUp start.
to create your own pattern. Ruby Console Plus is needed first.
open Magiz_PTN_Editor.rb, there are two commands in the bottom.click the button in red circle,'save_PTN' will save all the data in red square into a mgz file.'refresh' will generate a building at origin point of the model.'refresh' has three parameters.the first represents certain data in red sqaure. the second represents the height of building, when the third is 0, no details will be generated.
in the end, there are two functions you can write in pattern data. r1/r2/r3 randomly represents 1 or 0. lv(t,h) represents the height of building divides the net height of every floor. functions need to be wrapped by "".