SketchUcation Plugin Store

 

 

[Locked] 2D Toolset - Use Newer Version Link

[Locked] 2D Toolset - Use Newer Version Link

Postby TIG » Wed Aug 26, 2009 11:51 pm

2D Tools

This new toolset adds a submenu to the 'Draw' Menu >> '2D Tools...' and a '2D Tools' Toolbar
In it are 8 tools to draw only on the Z=0 plane:
Line - makes single lines with individually picked start and end points.
Polyline - makes multiple linked-lines which start from the previous end after the first line is made.
PolyLineCurve - makes multiple linked-lines as above but these are finally made into a single 'curve'.
Rectangle - makes a 3 point rectangle.
Arc - makes an Arc from picked end points and any point on its circumference.
Circle - makes a Circle from center and any point on its circumference.
Face Maker - makes a Face - pick a point inside a looped set of existing edges, a face is added (default color, face up)
Hatching - makes a Hatched Face - on each first run a dialog offers you a range of CAD hatch patterns (view in 'large icons' to see them best), select one and then pick point(s) inside looped set(s) of existing edges and face(s) added and hatched with that material: if the face already exists then its material is changed to the current hatch. The selected hatch patterns are added to the Material Browser. Each time this tool is run a new hatch pattern can be selected if desired, if that pattern is already loaded then that one is used.

The 2D#.rb needs to load before the others to make the sub-menu and toolbar...

Any feedback or ideas welcomed...

THIS THREAD REFERS TO THE 'OLD SET' GET v.5 HERE... viewtopic.php?p=185760#p185760
Last edited by TIG on Fri Aug 28, 2009 11:42 pm, edited 7 times in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset

Postby matteo » Thu Aug 27, 2009 12:18 am

if I understood well what you did, apart from being a perfect tool to trace images and imported cad files, this is the beginning of the end for many 2d cad applications ;) :shock:

thank you, I'll try it as soon as I can.

/matteo
matteo
 
Posts: 211
Joined: Tue Feb 19, 2008 10:43 am
Location: merano, south tyrol, italy
Name: matteo bignozzi
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset

Postby utiler » Thu Aug 27, 2009 1:03 am

Sounds like a cool thing, TIG. Thanks. I'll go try and give you some feedback.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset

Postby EarthMover » Thu Aug 27, 2009 1:36 am

TIG - thanks for the new tools. I would love to see a toolbar.

Also, is it possible to have the line tool stay active until something else is selected?
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] 2D Toolset

Postby Pixero » Thu Aug 27, 2009 7:29 am

Thanks.
After first test:
Polyline tool isnt showing a "guiding line" when drawing like the line tool does. Could it be fixed please?
None of the tools creates faces. I kind of both like it and not. Could there be some kind of choice for that?
+1 for a toolbar.
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset

Postby honoluludesktop » Thu Aug 27, 2009 8:59 am

TIG, First impression is good. Not sure, but I would consider putting all selections on the "draw menu", rather then a sub menu.
User avatar
honoluludesktop
In Remembrance
 
Posts: 2219
Joined: Fri Sep 12, 2008 12:08 am
Location: Hawaii

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 4:48 pm

See today's update viewtopic.php?p=180259#p180259 :D

This new toolset adds a submenu to the 'Draw' Menu >> '2D Tools...' and a '2D Tools' Toolbar
In it are 8 tools to draw only on the Z=0 plane:
Line - makes single lines with individually picked start and end points.
Polyline - makes multiple linked-lines which start from the previous end after the first line is made.
PolyLineCurve - makes multiple linked-lines as above but these are finally made into a single 'curve'.
Rectangle - makes a 3 point rectangle.
Arc - makes an Arc from picked end points and any point on its circumference.
Circle - makes a Circle from center and any point on its circumference.
Face Maker - makes a Face - pick a point inside a looped set of edges, a face is added (default color, face up)
Hatching - makes a Hatched Face - on each first run a dialog offers you a range of CAD hatch patterns (view in 'large icons' to see them best), select one and then pick point(s) inside looped set(s) of edges and face(s) added and hatched with that material: if the face already exists then its material is changed to the current hatch. The selected hatch patterns are added to the Material Browser. Each time this tool is run a new hatch pattern can be selected if desired, if that pattern is already loaded then that one is used.

The 2D#.rb needs to load before the others to make the sub-menu and toolbar...

Any feedback or ideas welcomed...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby DIEGO-RODRIGUEZ » Thu Aug 27, 2009 5:07 pm

thanks tig.
A good idea would be, to set the working plane Z

for example: z= 0mts; z = 3.2mts etc
DIEGO-RODRIGUEZ
Banned
 
Posts: 272
Joined: Sat Jan 10, 2009 6:20 pm
Location: Argentina - Mar del plata
Name: diego

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 5:09 pm

Before any of you ask... ;)
If you want '2D Text' there's already my TextTag tool which makes a 're-editable' component containing 2D text in any font/size/color/etc... http://www.crai.archi.fr/RubyLibraryDep ... textTag.rb

It's not in the set as it's also very useful in the '3D world', as are many other tools that will work in either - like 'fillet' etc...
Last edited by TIG on Thu Aug 27, 2009 5:47 pm, edited 1 time in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 5:11 pm

elcorto wrote:thanks tig.
A good idea would be, to set the working plane Z

for example: z= 0mts; z = 3.2mts etc


I thought of that - in fact I was looking at a reference-plane system which let you choose a plane by picking 3 points - but we are in danger of inventing existing tools here... Perhaps best if we stick on the Z=0 for now ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby CadFather » Thu Aug 27, 2009 5:12 pm

Great stuff TIG - i can see where this is going already... love the hatch thing..

Cheers
Quarr-IT - SketchUp Training from the Master.. . ;) .
User avatar
CadFather
 
Posts: 804
Joined: Fri Nov 16, 2007 11:03 am
Location: London, Milano, Sicily
Name: Max Coppoletta

Re: [Plugin] 2D Toolset - Update 090827

Postby Pixero » Thu Aug 27, 2009 5:52 pm

Yes! Already much better. :ecstatic:
The only things I can think of now would be if the arc, circle and rectangle tools could show the form beeing drawn like the standard tools does.
And maybe a line weight tool for different thickness of lines.

I just realised my Polyline curve tool doesnt create one curve. It separates them just as the polyline tool does. Bug?
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 6:02 pm

Pixero wrote:Yes! Already much better. :ecstatic:
The only things I can think of now would be if the arc, circle and rectangle tools could show the form being drawn like the standard tools does.
And maybe a line weight tool for different thickness of lines.

I would if I could, but I've only been looking at this since yesterday ! I can't see how to make the arc/circle forms as you draw - I'll think about it ? :idea:
The rectangle tool is not like the standard one as it's 3-point - giving you greater flexibility on its rotation on the 2D plane - it does show what it's doing though ?
'Line-weights' are only possible by faking them with 'grouped-lines' drawn very close to each other, or perhaps better a thin face black painted, with its edges hidden ?

If we want CAD use a CAD program - this is a semi-academic exercise in adding some 2D tools to Sketchup... :ugeek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby Pixero » Thu Aug 27, 2009 6:13 pm

It very good already.
No harm in wishing, ehe?

What about the Polyline curve tool?
Is it just me or is there a bug?
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 6:14 pm

Pixero wrote:It very good already.
No harm in wishing, ehe?
What about the Polyline curve tool?
Is it just me or is there a bug?

What sort of bug ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby Pixero » Thu Aug 27, 2009 6:17 pm

If I make a open form the lines are separated but if I draw a closed form they are turned into one.
How are we meant to exit the tool? I clicked esc.
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby Ken » Thu Aug 27, 2009 7:47 pm

TIG

Thanks. The hatching is a win for me.

Feedback. I know that when you think of 2d drawing, the Z axis is at a zero elevation. However, at least on my machine, the orbit tool works better when the drawing is done using the Front view. I never can get the orbit tool to behave to my request in the Top View. And why would I need the use of the orbit tool when doing 2d drawing. Well, after using Sketchup for the last couple of years, I try an orbit everything, even Word and Xcel documents. Therefore, it is a learned response. However, I do feel I get more info from the drawing when I orbit.


Again thanks for the tools.

Ken
Government rushes to help the irresponsible and does little for the responsible.
User avatar
Ken
Premium Member
Premium Member
 
Posts: 705
Joined: Thu Nov 15, 2007 1:38 pm
Location: Fort Mill, SC
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby honoluludesktop » Thu Aug 27, 2009 8:14 pm

TIG, Wow, having 2D icons make putting the commands directly on the "draw" menu for quick access unnecessary. Fantastic.
User avatar
honoluludesktop
In Remembrance
 
Posts: 2219
Joined: Fri Sep 12, 2008 12:08 am
Location: Hawaii

Re: [Plugin] 2D Toolset - Update 090827

Postby EarthMover » Thu Aug 27, 2009 10:03 pm

Nice update TIG! Can you tell me how to get the polyline curve to work? Is there a way to tell the script you are finished drawing the segments so it can convert them to a "curve"?
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 10:40 pm

Pixero wrote:If I make a open form the lines are separated but if I draw a closed form they are turned into one.
How are we meant to exit the tool? I clicked esc.

I'll look at it...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby TIG » Thu Aug 27, 2009 10:47 pm

The PolylineCurve works much as the PolylIne Tool - you click on a line end twice or the start point of the first line to say you are done. The difference is that it then converts the points to a Curve at the end and any loose edges should be erased - obviously it sounds like it's not doing that ! I'll investigate... When I am more awake tomorrow :enlight:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090827

Postby bagatelo » Fri Aug 28, 2009 2:55 am

Would it be possible a tool that draw rectangles with round corner?

I thank your efforts in any way.
User avatar
bagatelo
 
Posts: 243
Joined: Wed Apr 16, 2008 4:55 pm
Location: São José, Santa Catarina, Brasil
Name: Alex Henrique
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Intermediate

Re: [Plugin] 2D Toolset - Update 090827

Postby DIEGO-RODRIGUEZ » Fri Aug 28, 2009 6:50 am

Tig, I have been some errors running the plugins
http://www.youtube.com/watch?v=_UZUfNm8STk


suggestion:
You can add
- Double Line Tool?
- Ellipse Tool (defined by its 2diameters)?
> http://www.youtube.com/watch?v=G_t_gMqP8lM
- Polygon Tool of xsides (defining the length of one side)?
> http://www.youtube.com/watch?v=lYniLhupg1Q
DIEGO-RODRIGUEZ
Banned
 
Posts: 272
Joined: Sat Jan 10, 2009 6:20 pm
Location: Argentina - Mar del plata
Name: diego

Re: [Plugin] 2D Toolset - Update 090828

Postby TIG » Fri Aug 28, 2009 10:41 am

Today's update available here viewtopic.php?p=180259#p180259

Main changes are:

Return/Enter now ends the Polyline and PolylineCurve Tools and draws geometry.
Esc during the Tool now undoes the last Polyline and PolylineCurve pieces draw up to then.
PolyLineCurve Tool now draws both looped and open-ended curves, BUT if they branch - e.g. you draw a loop back onto one of the set's earlier edges mid-point - then it'll make the best curve it can out of what it has, and the rest will stay as loose lines.
Default number of segments for Arc and Circle now = 18, this can be set different for an Arc and a Circle, AND any changed values a remembered during that session in that model.
Arc now draws a ghost-arc as you stretch it out.
Circle now draws a ghost-circle as you stretch it out.

Hopefully this will address some of the errors reported... :roll:


On the other requests:

A Rectangle with Rounded Corners
- I'd use the Rectangle Tool and then use a 'fillet' or 'rounded-corners' tool to round its corners (there are several available - I use Ktools's 'Make-L'tool); or you could use the main Arc tool and draw tangential arcs at the corners - you can use Entity-Info to change its radius etc - then erase the unwanted bits ?
I don't know of an tool to do it right off. I've no plans to make one - sorry...

A Double-Line Tool
- Didier Bur has already made one - it works fine in 2D too - dline.zip on http://www.crai.archi.fr/RubyLibraryDep ... o_page.htm

An Ellipse Tool
- Didier Bur has already made one - it works fine in 2D too - Ellipse.zip on http://www.crai.archi.fr/RubyLibraryDep ... o_page.htm

A Polygon Tool with set side dimension.
- You could make a Polygon using the main Polygon tool of the 2D Circle tool with required number of edges/segments set, but that has a given radius rather than a side length. You also need to rotate it to the orientation angle you want. To make it a given side length draw a Polygon and then immediately group it. Edit that group and use the Tapemeasure tool and pick two vertices of an edge; now type in the size you want as units (e.g. 500mm) and it'll ask you if you want to scale everything, say 'Yes' - remember that this scaling is limited to the current active_entities, so don't panic - the polygon inside the group will now have its edges at the desired length: exit the group and explode it... I have a Polygon.side=1234 method that I might publish one day...

Any other ideas ? :?:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090828

Postby EarthMover » Fri Aug 28, 2009 1:01 pm

I'd be interested in seeing some 2D boolean functions added. Standard add, subtract and perhaps one that will allow you to draw a bunch of overlapping shapes and it will remove all the interior lines and just leave the perimeter shape. Essentially automating the intersect and removal of unwanted lines to create secondary shapes.

Is it possible to toggle the tools to draw CLines by hitting CTRL? Similar to how Fredo did with TOS. Not so important for the line tools but it would be a helpful feature for the Arc and Circle tools.

Another thing I was wondering is if you could have a tool that would define the height of Z. If you click on a point that is, let's say, 96" up on the Z, then all the tools would draw flat on that Z height. This would be nice for drawing out 2nd story floorplans and such.

Also, with the polyline curve tool....is there a way you could then translate the series of polylines into a flowing set of Arcs? Every other vertex would define the span of the arc and the middle verticies would define the bulge. Similar to the technique for your 2D arc tool, but just allowing you to draw out a series of polylines and having it translate into to tangent arcs. Similar to how you can convert polylines to curve splines in Fredo's Bezier tools. Just a thought.

Thanks again TIG!
Last edited by EarthMover on Fri Aug 28, 2009 2:46 pm, edited 1 time in total.
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] 2D Toolset - Update 090828

Postby Ben Ritter » Fri Aug 28, 2009 2:36 pm

TIG, thank you.
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] 2D Toolset - Update 090828

Postby Ben Ritter » Fri Aug 28, 2009 2:50 pm

TIG,

The hatch dialog doesn't appear for me.

Ben
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] 2D Toolset - Update 090828

Postby Jim » Fri Aug 28, 2009 2:52 pm

Hi TIG,

Don't assume the variable $exStrings is defined. It is for most people, but not for all. It is originally defined in one of the rubies that came with SketchUp - but not everyone loads those.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] 2D Toolset - Update 090828

Postby TIG » Fri Aug 28, 2009 3:01 pm

Ben Ritter wrote:TIG,
The hatch dialog doesn't appear for me.
Ben

Have you put the '2DtoolsIcons' folder into the Plugins folder. In that there should be a folder called 'Hatching' containing the jpgs ? What does the Ruby Console say when it fails ?
Last edited by TIG on Fri Aug 28, 2009 3:16 pm, edited 1 time in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090828

Postby TIG » Fri Aug 28, 2009 3:02 pm

Jim wrote:Hi TIG,
Don't assume the variable $exStrings is defined. It is for most people, but not for all. It is originally defined in one of the rubies that came with SketchUp - but not everyone loads those.

Point taken.
I just quickly clobbered these tools together from stuff mainly based on the linetool ruby that had it in... I'll trap it in the next release...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: danielsamp, Google Bot, thomthom, zealotzgz and 11 guests