[Plugin] Generate Ceiling Grid (Updated 27-Mar-2014)
-
Now SU2014 compatible.
-
I have added it to the PluginStore.
http://sketchucation.com/pluginstore?pln=Generate_Ceiling_Grid -
@sdmitch said:
If you have other standard sizes you would like to use, simply add them to the code. If you don't feel capable of doing that, tell me what you would like to have as size options.
Hi Sam, just wondering how I'd go using this plugin with metric units...? I thought that the plugin would recognize that my system is set to metric not imperial....
BTW, a standard ceiling grid is 1200mm x 600mm.
This looks a great plugin; keen to see if I can get it to work!
-
@utiler said:
@sdmitch said:
If you have other standard sizes you would like to use, simply add them to the code. If you don't feel capable of doing that, tell me what you would like to have as size options.
Hi Sam, just wondering how I'd go using this plugin with metric units...? I thought that the plugin would recognize that my system is set to metric not imperial....
BTW, a standard ceiling grid is 1200mm x 600mm.
This looks a great plugin; keen to see if I can get it to work!
I'll see what I can do for the Metric folks.
-
Any update for us poor metric folk?
-
Good afternoon
I love your Generate Ceiling Grid I use metric in Australia can this plugin be changed from imperial to metric
Thanks Dave -
It's quite an old plugin, and the author might not support it now...
You are allowed to change it as outlined in its 'header' text...You can change its
../Plugins.Generate Ceiling Grid.RB
file as follows...
TIP: Make a copy outside of the Plugins folder, in case of a balls-up !
Edit it using a plain-text editor - like TextWrangle [MAC] or Notepad++ [PC].
Do a search & replace for the possible grid choices [assuming metric is mm]..
2x2 >>> 600x600 2x4 >>> 600x1200 4x4 >>> 1200x1200
Then find the part that reads... [assuming that the original 2x2 >>> 600x600 etc] and change the inch parts to mm...
Let's assume that the 600 >>> 600mm etc
The original says 24.125.inch - adding 1/8" onto the 'size' - you might NOT want that as metric grids are what they say - 600mm module [with a slightly smaller tile] and NOT 603mm !
So let's say we use...
when "600x600" ; dx = 600.mm; dy = 600.mm; when "600x1200" ; dx = 1200.mm; dy = 600.mm; when "1200x1200" ; dx = 1200.mm; dy = 1200.mm;
Later on the offset for the tile is set in from the grid by 1/8"
self.ct_offset(f,-0.125)
Let''s assume the tile is actually 3mm smaller all round that the module, so change that to
self.ct_offset(f,-3.mm)
A little later on the tile thickness is set to always be 0.5", change that to the mm you want...
e.g.
f.pushpull(-0.5)
becomes
f.pushpull(-15.mm)
Note that this code occurs twice !Next there's block of code using inches...
` if type == "T"p0 = origin.offset(za,0.0625.inch)
p1 = p0.offset(xa,-0.0625.inch)
p2 = p1.offset(ya,+1.6250.inch)
p3 = p2.offset(xa,+0.1250.inch)
p4 = p3.offset(ya,-1.6250.inch)
f = ge.add_face(p1,p2,p3,p4)
f.pushpull -(ppd-0.125.inch)
p0 = origin.offset(za,0.5.inch)
p1 = p0.offset(xa,+0.5000.inch)
p2 = p1.offset(ya,-0.1250.inch)
p3 = p2.offset(xa,-1.0000.inch)
p4 = p3.offset(ya,+0.1250.inch)
f = ge.add_face(p1,p2,p3,p4)
f.pushpull -(ppd-1.0.inch)elsif type == "E"
p1 = origin.offset(ya,-0.1250)
p2 = p1.offset(ya,+1.7500)
p3 = p2.offset(xa,-0.0625)
p4 = p3.offset(ya,-1.6250)
p5 = p4.offset(xa,-0.4375)
p6 = p5.offset(ya,-0.1250)Edit that list with the mm values you want... e.g.
0.125.inch >> 3.mm
0.0625.inch >> 1.5.mm`
and so on - I'll leave the rest of the conversions to you !
You might need to look at how the inch values [in the API 'bald' numbers are assumed as inches] relate to the .mm equivalents in the real world...When it's done save it and then restart SketchUp.
See if it works... -
I love this tool but have some questions.
- is there a way to select a starting point? This works fine for new spaces. but when you try and match a buildings existing ceiling grid it is a pain.
-
this is by far one of my favorite plugins. does anyone know if they have modified it to add updates to it.
- able to automatically give the grid and the tile a color (I know you can set the default)
- create a starting point of the grid.
- give a rotation angle up front.
Thanks again for the help. or at least sending me in the correct direction.
P.S. I know it is an old plugin just asking
-
Sadly, its author is no longer supporting his extensions...
But most of his files are not encrypted... so if you learn a bit of Ruby, then you could try tweaking things yourself !!
-
I know it is not locked but has anyone modified it yet I tried to use ruby and wow is it hard for me lol
requested ruby help
- change the color of both the grid and then the tile
- pick a starting point
Thanks everyone for the help
Advertisement