Overview Selection of snippets I've written while working on DWG imported data. They are specially made for my workflow and is not always the most user friendly. Beware.
Enter a comma or pipe separated list of layer which contains building boundary data. These lines are then projected down to ground level and attempted to form faces which is extruded back up to the lowest/highest point above. Quick and dirty tool to get the bulk work done when importing DWG site plans.
Merge Solid Buildings(2.0.0) Merge solids but keep edges on top of the objects. This is so one can later detail the roofs for building generated with the "Generated Buildings" feature. (Video coming)
Fill Solid Holes(2.0.0) Attempts to remove all holes in solid objects. Like window holes in a wall.
Select Non-Solids(2.0.0) Filters down the current selection to only non-solid groups or components.
Make 2:1 Road Profile For each selected edge two triangle are formed at either end of the edge making up for a road profile of 2:1.
Move to Z(2.0.0) Allows you to set the Z height of selected edges. Made for creating roads where you have Z height given for sections along the road. (Video coming)
Contour Tool(2.0.0) Tool to assist in closing up contour curves from CAD drawings where not all contours are properly closed. (Video coming)
Extrude Up(2.0.0) Once the contours for a terrain has been created on a flat plane, with faces, this function will attempt to extrude the faces up to guiding 3D contour lines above. (Video coming)
Project Down Tool(2.0.0) Tool that let the user pick edges in a group/component, without opening it, and it will be projected down to the first face underneath it. Intended to project roof edges down to building volumes underneath for later detailing. (Video coming)
Magnet Tool(2.0.0) Pick edges that will be projected upwards until it hits other geometry. Intended to pull roof feature lines up to guiding 3D edges above. (Video coming)
Move to Plane(2.0.0) Tool written to assist in adjusting surfaces to lie on a picked plane. (Video coming)
Flatten Selection Flattens the selection (recursively) to Z level 0
Crop Selection to Boundary
Crop.png
Select a face parallel to the ground plane.
Select a group/component with edges to crop
Run the command
All components inside the selection will be made unique!
Put Geometry on Layer0 Puts all Faces and Edges on to Layer0
Grid Divide Splits the edges in the selection by a given grid size.
thanks thom. exelentes tools. a question. Plant when I run the tool tools> Flatten selection, are exploited all the curves and circles. may not exploit the arcs and circles? thanks
is your question why curves and arcs is exploded when flattened? it's because SU applies geometric restrictions to transforming an arc's vertices. I suppose arcs might be preserved if the arc is parallel to the ground.
It contains the best flattening routine in SU! Thank you! Bugs: If I take some vanilla line and try to 'grid dividing' I get a runtime error in line:29 (expected identifier,string or number). P.S. + Error in line 9 (UI is undefined) P.P.S. Apparently 'grid dividing' executes itself twice. In attachment, I just extruded the result of zigzag dividing.
thomthom wrote:hm.. I don't understand this error. I can not reproduce it at all. I wonder if the file has become corrupted. Can you send the the file you have?
Also, what is the OS and SketchUp version you use?
OS Windows 7 x64, Google SketchUp Pro 8.0.4811 File:
@blajnov: I really have no idea why you get those errors. Though your SketchUp folder looks odd. lots of other plugins folders. (but that might not mean much..) I can't read the language your OS is in, but is there anything in the Explorer window that says something like "Compatibility Files" when you're in the plugins folder?
rv1974: I've installed XP Mode and tried it out on a virtual PC with IE7 and I see the error. Seems to be an issue with IE7 and older. Will look into it next week.
thomthom wrote:@blajnov: I really have no idea why you get those errors. Though your SketchUp folder looks odd. lots of other plugins folders. (but that might not mean much..) I can't read the language your OS is in, but is there anything in the Explorer window that says something like "Compatibility Files" when you're in the plugins folder?
At work, set your plugins, everything runs fine, no problems ... In the evening, I will seek a solution on a home computer.
I updated to IE8- no more runtime errors- thank you! (wouldn't it be neat to warn in red about this at the beginning of the thread?). Still have problems with grid dividing. The result is random (posted the pic before).Do I have wrong expectations? And at the end I got this: undefined method `on_line?' for nil:NilClass
rv1974 wrote:I updated to IE8- no more runtime errors- thank you! (wouldn't it be neat to warn in red about this at the beginning of the thread?).
I'll be looking into fixing it for IE7. I installed a virtual PC to test it on last night.
rv1974 wrote:Still have problems with grid dividing. The result is random (posted the pic before).Do I have wrong expectations? And at the end I got this: undefined method `on_line?' for nil:NilClass
Problems are likely to be due to the errors. Can you upload your sample scene?