Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------------------------------------------------------------------------
- mod = Sketchup.active_model # Open model
- ent = mod.entities # All entities in model
- sel = mod.selection # Current selection
- require 'sketchup.rb'
- #------------------------------------------------------------------------
- UI.menu("Plugins").add_item("Bemat Iwall") {
- #importing the model from source location
- model = Sketchup.active_model
- model.import 'C:\Users\sande\Desktop\Bematrix skp plugin\606 ++++ ++++ 30.skp'
- #Creating an input textbox for rows and collums
- prompts = ["Horizontal", "vertical"]
- defaults = ["1","1"]
- input = UI.inputbox(prompts, defaults, "Wall specifications")
- horizontal = input[0]
- vertical = input [1]
- #for loop create multible copies
- for i in 0..horizontal
- #importing the model from source location
- model = Sketchup.active_model
- model.import 'C:\Users\sande\Desktop\Bematrix skp plugin\606 ++++ ++++ 30.skp'
- end
- }
- #------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement