SketchUcation Plugin Store

 

 

[Locked] 2D Toolset - Use Newer Version Link

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: 708
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: 13992
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: 13992
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: 13992
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: 353
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: 353
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: 13992
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: 13992
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:15 pm

Here's another update - with potential $exStrings problem circumvented...
viewtopic.php?p=180259#p180259
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 090829

Postby TIG » Fri Aug 28, 2009 11:43 pm

Here's this morning's update with improve undo for 2D polyline/curves etc...
viewtopic.php?p=180259#p180259
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 090829

Postby honoluludesktop » Sat Aug 29, 2009 5:26 am

TIG, So far so good, NO Great! If you get around to expanding the software set, how about triming; both, to the intersection of, and in reference from :-)
User avatar
honoluludesktop
In Remembrance
 
Posts: 2219
Joined: Fri Sep 12, 2008 12:08 am
Location: Hawaii

Re: [Plugin] 2D Toolset - Update 090829

Postby anglaret » Sat Aug 29, 2009 7:26 am

Thanks TIG,
it is very interesting that somebody care about 2D.I work a lot in 2d
The hatch tool is very nice

I have a tedious problem with drawing doors, and I remember asking Google
to put in SU the "pie" tool that exists in Layout:
click on a point, go to the distance you like, click again than you can draw
a pie : radius is fixed, and 2 sides of the pie are drawn

In 3 clicks you draw a door
Marc
anglaret
 
Posts: 122
Joined: Mon Nov 19, 2007 12:01 pm
Location: normandie

Re: [Plugin] 2D Toolset - Update 090829

Postby Edson » Sat Aug 29, 2009 1:14 pm

hi tig,

it is not working for me. i followed your instructions but something is not right. can you help me? what do you mean by "The 2D#.rb needs to load before the others to make the sub-menu and toolbar..."? what can i do for it to happen? thanks.

2 images attached: one with the error message i get, the other showing the files i heve on my plugins folder.
Please, register (free) to access all the attachments on the forums.
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2656
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090829

Postby TIG » Mon Aug 31, 2009 8:02 pm

Edson

You are Mac ? I'll investigate... I doesn't like the status_text ??? Seems that if first part is in () the second after the ',' confuses it ! BUT not on a PC - I'll ensure the update avoids that possibility...

I am working on v2.0 which is quite different, so that might avoid the problem - perhaps needs a day or two...

Please hang in there... :)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 090829

Postby anglaret » Mon Aug 31, 2009 9:07 pm

Tig
I would be more precise
In Layout tools/arc/pie; is a brillant and simple tool that draw doors from above
I would be very very grateful for that tool in SU

Marc
anglaret
 
Posts: 122
Joined: Mon Nov 19, 2007 12:01 pm
Location: normandie

Re: [Plugin] 2D Toolset - Update 090829

Postby Edson » Mon Aug 31, 2009 9:17 pm

TIG wrote:Edson

You are Mac ? I'll investigate... I doesn't like the status_text ??? Seems that if first part is in () the second after the ',' confuses it ! BUT not on a PC - I'll ensure the update avoids that possibility...

I am working on v2.0 which is quite different, so that might avoid the problem - perhaps needs a day or two...

Please hang in there... :)

yes, tig, i am on mac. thanks for looking into this. this promises to be one more of your greatly useful plugins.
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2656
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] 2D Toolset - Update 090829

Postby TIG » Mon Aug 31, 2009 11:45 pm

anglaret wrote:Tig
I would be more precise
In Layout tools/arc/pie; is a brillant and simple tool that draw doors from above
I would be very very grateful for that tool in SU

Marc

I intend that they'll be something like that in v2... :arrow:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 090829

Postby honoluludesktop » Tue Sep 01, 2009 12:02 am

TIG, Out of curosity, how much time did it take you do do the plugin? Did you have templates to work from? As a retired amature programmer (pre OOPS), I find this kind of coding compact. Maybe I could learn something about ruby if you documented a little:-), or maybe I am just a old dog that can't:-( Good work.
User avatar
honoluludesktop
In Remembrance
 
Posts: 2219
Joined: Fri Sep 12, 2008 12:08 am
Location: Hawaii

Re: [Plugin] 2D Toolset - Update 090829

Postby TIG » Tue Sep 01, 2009 12:06 am

I took a few hours to get the first code out - look at the early exchanges with Jim -I based it on several pre-existing ideas... it then grew 'like topsy'... So far it's taken a couple of days to get where we are, on and off - I was away this weekend 'resting' and had T some better ideas for v2 that will be out soonest...
:idea:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 Fletch » Tue Sep 01, 2009 1:36 am

TIG,
I have wished for these tools since like the first day of using SketchUp!
Now SU can be an illustration tool too (I use it for this sometimes, logo design, etc.)
But now also I can trace these freaky CAD plans that look like they are flat but they are not, etc.

THANKS A MILLION... you are a legend in your own time.
Fletch
Twilight Render
 
Posts: 760
Joined: Wed Nov 14, 2007 1:02 am
Location: Milwaukee, WI USA / Rovinj, Croatia

Re: [Plugin] 2D Toolset - Update 090829

Postby utiler » Tue Sep 01, 2009 2:33 am

Hi TIG, downloaded the latest 2Dtoolset and having a play....
I noticed a few things that you may wish to review:

1. 2D Polyline doesn't acknowledge when it is on an axis. [change to green or red and tooltip to say "On Green axis"]
2. 2D Arc doesn't reference axises at all.
3. 2D circle doesn't acknowledge when it is on an axis either. [as per 2D polyline]


Wishlist
1. Arc to recognize tangents
2. Can 2D rectangle produce a closed entity?

Well done, mate, this is a great addition to GSU!!! :sketchstatic:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1927
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 - Update 090829

Postby TIG » Tue Sep 01, 2009 10:16 am

utiler wrote:Hi TIG, downloaded the latest 2Dtoolset and having a play....
I noticed a few things that you may wish to review:

1. 2D Polyline doesn't acknowledge when it is on an axis. [change to green or red and tooltip to say "On Green axis"]
2. 2D Arc doesn't reference axises at all.
3. 2D circle doesn't acknowledge when it is on an axis either. [as per 2D polyline]


Wishlist
1. Arc to recognize tangents
2. Can 2D rectangle produce a closed entity?

Well done, mate, this is a great addition to GSU!!! :sketchstatic:


Your items are already on the list for v2, as is wish 1. Wish 2 - we could make it a modifier key - e.g. raw rectangle is lines, with alt key it's a loop...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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 090829

Postby utiler » Tue Sep 01, 2009 12:12 pm

Or Ctrl key for the loop; not sure what is the 'norm' for use of shift/Alt/Ctrl keys when it comes to GSU....
I just find the physical location of Ctrl is easier to get used to than Atl; even considering Alt implies alternative...

Anyway, glad it is on the radar. :thumb:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1927
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

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: andrewcahn, bytor, mmmuns, peterbond and 12 guests