在看到群里有一个咔咔su专业建模师的人有这款插件,本人愚笨,只编写了前面一段代码,后面的不会了!希望高手帮忙下!
model = Sketchup.active_model
model.start_operation "Push "
entities = model.active_entities
ss = model.selection
if ss.empty?
UI.messagebox("No selection.")
return nil
end
if not ss.first.kind_of? Sketchup::Face
UI.messagebox("Please select face(s).")
return nil
end