[Plugin] Architect Tools

[Plugin] Architect Tools

Postby thomthom » Wed Sep 01, 2010 8:12 pm

The plugin formerly known as Plan Tools

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.

Toolbar.png


YouTube playlist of demonstration of features: http://www.youtube.com/playlist?list=PL ... FUqJHgB-Z4

Access
Plugins > Architect Tools

Features
Generate Buildings
Flatten-Extrude.png

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

  1. Select a face parallel to the ground plane.
  2. Select a group/component with edges to crop
  3. 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.

Requirements
  • SketchUp 7 or newer - ( Other versions untested )
  • TT_Lib2 (2.7.0)


Guide: How to install RBZ Files

Download



Footprint
<Sketchup>/Plugins/
+-
tt_architect_tools.rb

3
Last edited by thomthom on Sat Jan 18, 2014 12:46 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.0.2) — 01 September 2010

Postby DIEGO-RODRIGUEZ » Wed Sep 01, 2010 9:44 pm

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
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Plan Tools (1.0.2) — 01 September 2010

Postby thomthom » Wed Sep 01, 2010 10:10 pm

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.0.2) — 01 September 2010

Postby Panga » Thu Sep 02, 2010 11:03 am

Damn ! All your last rubies'll boot my workflow ! Thanks for sharing your tools.

Regards.
0

Panga 
Premium Member
Premium Member
 

Re: [Plugin] Plan Tools (1.1.0) — 21 October 2010

Postby thomthom » Thu Oct 21, 2010 8:00 pm

Version 1.1.0
  • Grid Divide
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sat Feb 05, 2011 10:11 pm

Version 1.2.0
  • Bug fixes
  • Improvement to the Generate Building feature. Does a lot more work to extract usable data when generating the buildings.

Make sure to update TT_Lib2

I wanted to make a toolbar for this plugin, but I have so many thing to do that I'll have to wait for a later release. Sorry.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby rv1974 » Sun Feb 06, 2011 12:12 pm

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.
0

rv1974 
 

Plan Tools Error

Postby blajnov » Sun Feb 06, 2011 12:31 pm

thomthom wrote:
blajnov wrote:Thank you very much for the update, but downloading SketchUP Pro v.8, an error ...

:?:
That refers to Plan Tools...

Can you open the Ruby Console and type in load 'tt_plan_tools.rb' ? Post back the whole message. (In the Plan Tools thread please.)

Ruby Console....

load 'tt_plan_tools.rb'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:34: warning: already initialized constant VERSION
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:35: warning: already initialized constant PREF_KEY
Error: #<SyntaxError: (eval):35:in `read_default': (eval):35:in `read_default': compile error
(eval):35: unterminated string meets end of file>
(eval):2537
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TT_Lib2/settings.rb:48:in `[]'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TT_Lib2/settings.rb:88:in `set_default'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:43
(eval):2537:in `load'
(eval):2537
0

blajnov 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 1:13 pm

hm.. I'll have a look at it later today. Thanks for reporting.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Plan Tools Error

Postby thomthom » Sun Feb 06, 2011 1:23 pm

blajnov wrote:
thomthom wrote:
blajnov wrote:Thank you very much for the update, but downloading SketchUP Pro v.8, an error ...

:?:
That refers to Plan Tools...

Can you open the Ruby Console and type in load 'tt_plan_tools.rb' ? Post back the whole message. (In the Plan Tools thread please.)

Ruby Console....

load 'tt_plan_tools.rb'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:34: warning: already initialized constant VERSION
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:35: warning: already initialized constant PREF_KEY
Error: #<SyntaxError: (eval):35:in `read_default': (eval):35:in `read_default': compile error
(eval):35: unterminated string meets end of file>
(eval):2537
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TT_Lib2/settings.rb:48:in `[]'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/TT_Lib2/settings.rb:88:in `set_default'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:43
(eval):2537:in `load'
(eval):2537



What is the size of the 'tt_plan_tools.rb' file you got? From the error it seems that it's truncated at line 43...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Plan Tools Error

Postby blajnov » Sun Feb 06, 2011 2:19 pm

thomthom wrote:.........................

What is the size of the 'tt_plan_tools.rb' file you got? From the error it seems that it's truncated at line 43...

Filesize tt_plan_tools.rb 20.4Kb
0

blajnov 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 3:00 pm

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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby blajnov » Sun Feb 06, 2011 3:19 pm

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:
0

blajnov 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 3:39 pm

That's the same Windows and SU version I use. I do not comprehend at all why you get that error.

Can you post a screenshot of your plugins folder? and thre TT_Lib2 folder?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby blajnov » Sun Feb 06, 2011 5:24 pm

thomthom wrote:That's the same Windows and SU version I use. I do not comprehend at all why you get that error.

Can you post a screenshot of your plugins folder? and thre TT_Lib2 folder?
0

blajnov 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 9:33 pm

rv1974 wrote:If I take some vanilla line and try to 'grid dividing' I get a runtime error in line:29 (expected identifier,string or number).

Is that the full error message?

rv1974 wrote:P.S. + Error in line 9 (UI is undefined)

From SketchUp or the Webdialog? Again, is it the full error message?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 9:34 pm

thomthom wrote:
rv1974 wrote:If I take some vanilla line and try to 'grid dividing' I get a runtime error in line:29 (expected identifier,string or number).

Is that the full error message?

rv1974 wrote:P.S. + Error in line 9 (UI is undefined)

From SketchUp or the Webdialog? Again, is it the full error message?

Oh, it's the same error Dave reported in CleanUp. Gotcha.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 9:36 pm

thomthom wrote:
thomthom wrote:
rv1974 wrote:If I take some vanilla line and try to 'grid dividing' I get a runtime error in line:29 (expected identifier,string or number).

Is that the full error message?

rv1974 wrote:P.S. + Error in line 9 (UI is undefined)

From SketchUp or the Webdialog? Again, is it the full error message?

Oh, it's the same error Dave reported in CleanUp. Gotcha.

What version of IE do you have installed?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 11:13 pm

@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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Mon Feb 07, 2011 12:35 am

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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby blajnov » Mon Feb 07, 2011 9:04 am

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.
0

blajnov 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Mon Feb 07, 2011 9:47 am

blajnov wrote:At work, set your plugins, everything runs fine, no problems ...
In the evening, I will seek a solution on a home computer.

Maybe try with an empty plugin folder. Rename your old and install just Plan Tools to see if it works isolated?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby rv1974 » Mon Feb 07, 2011 10:13 am

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

C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/point3d.rb:26:in `between?'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:358:in `intersect_plane_edges'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:354:in `each'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:354:in `intersect_plane_edges'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:334:in `grid_divide'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:330:in `times'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:330:in `grid_divide'
C:/Program Files/Google/Google SketchUp 8/Plugins/tt_plan_tools.rb:311:in `grid_divide_ui'
C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/inputbox.rb:160:in `call'
C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/inputbox.rb:160:in `initialize'
C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/inputbox.rb:143:in `call'
C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/inputbox.rb:143:in `close'
C:/Program Files/Google/Google SketchUp 8/Plugins/TT_Lib2/inputbox.rb:143:in `initialize'
----
What it could mean?
0

rv1974 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Mon Feb 07, 2011 10:45 am

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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby rv1974 » Mon Feb 07, 2011 10:54 am

catch it:
0

rv1974 
 

Re: [Plugin] Plan Tools (1.2.0) — 05 February 2011

Postby thomthom » Mon Feb 07, 2011 10:55 am

Cheers! I'll look at it when I get home today.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.1) — 07 February 2011

Postby thomthom » Mon Feb 07, 2011 7:34 pm

Version 1.2.1
  • Fixes Grid Divide bug
(There might be another bug in there. But I don't have much time for this function right now.)

Also: IE7 users should update TT_Lib2 to 2.5.1 which addresses IE7 error messages with the webdialogs.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.1) — 07 February 2011

Postby DIEGO-RODRIGUEZ » Tue Feb 08, 2011 12:53 am

as usual. excellent work. very professional.
thank you very much
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Plan Tools (1.2.1) — 07 February 2011

Postby thomthom » Thu Feb 10, 2011 12:25 pm

Important!
Update TT_Lib2 to version 2.5.2 which fixes a bug affecting repair edges.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Plan Tools (1.2.1) — 07 February 2011

Postby thomthom » Thu Feb 10, 2011 2:24 pm

Important!
Update TT_Lib2 to version 2.5.3 which re-fixes a bug affecting repair edges.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: foufou, jeffchy, Klamek and 4 guests

Visit our sponsors: