There have been several projects that I have needed metal grating for and it takes a lot of time to create, so as my first real addon I created a script to automate all this. You can adjust width, length, number of slates width wise and length wise, height, and thickness. All normals seem to be looking ok, only problem that I know of is the fact you can make the thickness larger than the spacing between slates. Leading to some ugly results. Still looking for a way to easily correct that. Suggestions are welcome. Here is the link to the download
EDIT 8/30/14 version 0.2:
I update the script, you can now rotate while adjusting the properties. Also made lengths up to 2000 in possible. Also noticed that at 60" x 1200" with 12 width slates and 150 length slates the face count was around 17,000. A lot of faces for just grating, but that is a pretty big example. New script here
EDIT 8/31/14 version 0.3:
Added button to Create panel, under new heading called “Addons”. Fixed some normal issues, so all normals are now good. Hope to for next update fix problem were thickness can be larger than distance between slates. Causing a mess. Here is the current version, I will update it once I fix the thickness issue. UPDATE: thickness issue fixed, changed so smallest length is 1 inch
EDIT 9/7/14 version 0.4:
Fixed inner faces issue. Link here
EDIT 10/9/14 version 0.4:
Updated the panel, to add to the View3D > Toolbar > Create > Addons panel you now need this script.
Link in above post has been update to adjusted grating script
that is really odd, I have the lines commented out and it works just fine for me as a plug-in. I thought that those lines were only needed to get the code to run from the text editor, but as a plug-in you didn’t need them. And I will look into add it to the Create tab, thanks for the suggestion.
That is really odd, I played around with it and couldn’t get an error, although I get some pretty funky results from when I was in Edit Mode, so I made it so that it won’t add unless in object mode. Get the latest version here, or in update 0.3 from main post.
Convenient (and works nicely in Win64 2.71 here ^_^)… but, there’s something slightly odd about the mesh it generates - visible when you try to bevel the inner edges. Perhaps there are some generated internal faces that shouldn’t be there? (alternatively, maybe add a “Bevel Amount” setting to the panel?).
In the following image, the blue was made manually and bevelled (to check that the 5-pole corners weren’t confusing the Bevel tool), while the grey one shows glitches at some corners…