SketchUcation Plugin Store

 

 

[plugin] Rotated Box [updated Jun 20, 2012]

[plugin] Rotated Box [updated Jun 20, 2012]

Postby sdmitch » Tue Jun 05, 2012 3:13 pm

In response to "draw box with 3 click"
http://forums.sketchucation.com/viewtopic.php?f=323&t=45764

Version 1.2.1 The "@ent=@mod.entities" has been changed to "@ent=@mod.active_entities" so you can add boxes to any component or group that is open for edit. Is everyone happy now?

Version 1.2 If grouping is on, the axes are aligned to the group. MAC's use Alt key to toggle grouping.

Version 1.1 In addition to a few minor tweaks, grouping can be turned on and off using the Ctrl key.

Rotated Box is the natural extension of the long existing Rotated Rectangle with the 3rd dimension added. The Width, Depth, and Height can be defined graphically or keyed in. The plane is established by the three points that define the rectangle and a guide line is temporarily displayed to aid in the definition of the height. The resulting box is created as a group.
Please, register (free) to access all the attachments on the forums.
Last edited by sdmitch on Wed Jun 20, 2012 9:33 pm, edited 5 times in total.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box

Postby gilles » Tue Jun 05, 2012 3:24 pm

Very useful, I would love a rotated circle for years :(

Thanks a lot :thumb:
User avatar
gilles
Top SketchUcator
 
Posts: 766
Joined: Mon Apr 07, 2008 10:29 am
Location: france
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby Pilou » Tue Jun 05, 2012 3:48 pm

Tricky the guides lines! ;)

And yes for cylinder that will solve the little problem of this ;)

galère.jpg

boxes.jpg
Please, register (free) to access all the attachments on the forums.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10039
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [plugin] Rotated Box

Postby EarthMover » Tue Jun 05, 2012 6:19 pm

Thanks Sam. :thumb: This is a great tool. Would be a super effective technique to create a more comprehensive (& interactive) set of primitive tools similar to in 3ds Max http://heartlessg.com/node/20 Something long overdue in Sketchup.
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] Rotated Box

Postby sdmitch » Tue Jun 05, 2012 10:46 pm

gilles wrote:Very useful, I would love a rotated circle for years :(

Thanks a lot :thumb:


OK, just how would you design this plugin, a circle through 3 points or maybe center, a point to define the radius, and a point to define the plane, or maybe the ends of the diameter and a point to define the plane. Please don't say "all of the above", pick one.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box

Postby Ken » Tue Jun 05, 2012 11:07 pm

My vote, 3 point.

Thanks

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] Rotated Box

Postby jorge2011 » Wed Jun 06, 2012 12:06 am

thank you very much, excellent plugin.
just a query, you can use the "Ctrl" key to switch between geometry and geometry grouped ungrouped?

thank you very much
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby sdmitch » Wed Jun 06, 2012 2:03 am

jorge2011 wrote:thank you very much, excellent plugin.
just a query, you can use the "Ctrl" key to switch between geometry and geometry grouped ungrouped?

thank you very much


Do you mean toggle the grouping of the box on and off with the "Ctrl" key?
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box

Postby jorge2011 » Wed Jun 06, 2012 4:53 am

yes
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby gilles » Wed Jun 06, 2012 6:37 am

The best for my needs should be
first point center second point axis third point radius.
User avatar
gilles
Top SketchUcator
 
Posts: 766
Joined: Mon Apr 07, 2008 10:29 am
Location: france
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby Jeff Hammond » Wed Jun 06, 2012 6:46 am

gilles wrote:The best for my needs should be
first point center second point axis third point radius.

thats a good one
dotdotdot
User avatar
Jeff Hammond
Global Moderator
 
Posts: 4311
Joined: Thu Jan 24, 2008 11:16 pm
Location: newyorkcity
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] Rotated Box

Postby gilles » Wed Jun 06, 2012 7:31 am

I don't think so, but I may be wrong.

In fact I think something similar to the rotate tool.
User avatar
gilles
Top SketchUcator
 
Posts: 766
Joined: Mon Apr 07, 2008 10:29 am
Location: france
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby urgen » Wed Jun 06, 2012 2:21 pm

....old post viewtopic.php?f=323&t=9556&start=15
...Guys,I use this for a long time... ;) thanks once again CPhillips,Sahi and Macs! :thumb:
gilles wrote:The best for my needs should be
first point center second point axis third point radius.

...it should be useful.
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [plugin] Rotated Box

Postby sdmitch » Wed Jun 06, 2012 7:10 pm

gilles wrote:The best for my needs should be
first point center second point axis third point radius.


Defining a axis other than standard red, green, or blue can be difficult without something to inference to. So, unless you are not interested in defining an arbitrary axis, I guess it would work
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box

Postby gilles » Wed Jun 06, 2012 7:31 pm

I think about a snapping point, edge vertice etc..
User avatar
gilles
Top SketchUcator
 
Posts: 766
Joined: Mon Apr 07, 2008 10:29 am
Location: france
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box

Postby the.pjt » Wed Jun 06, 2012 9:45 pm

thanks dear Sam ... :berserk:

I posted this massage in me question topc .. but I think you haven't seen it ..... :


this plugin is exactly what every body wants : a time saver ... draw .. rotate .. select .. make group .. push pull ... all in one ! well done .. tanks dear sam .. tanks :bounce:

and I have a question .. why do these display problems happen ??!? I'm not a pro developer but I can understand if you tell me the reasons ... ?!??

and another thing : if you add a "make cylinder" feature , it's gonna to be perfect ... because SU's default cylinder is not a time saver .. it makes the cylinder in 0,0,0 ... thanks
this is a snapshot from shetchyphisics > sketchy solids ..
pictures describes it Sam ... so don't need to make codes from my wrong described requests .. :) :oops:

the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box

Postby sdmitch » Wed Jun 06, 2012 10:43 pm

I don't know exactly why either. You might post this question on the developers forum and get an answer but basically it has to do with the way Sketchup displays things on the screen. There is a certain field of view and if you get to close to an object it disappears. Zooming out usually makes it reappear.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box

Postby utiler » Thu Jun 07, 2012 2:36 am

Well done, Sam! A great little tool...... :thumb:

The efforts in responding to plugin requests often goes un-noticed so thank you for all that you do mate!! :berserk:
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] Rotated Box [update Jun 10, 2012]

Postby sdmitch » Sun Jun 10, 2012 5:38 pm

Rotated box has been updated to allow the option turning grouping on and off.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby jorge2011 » Sun Jun 10, 2012 5:49 pm

Thank you very much. just one more thing
is possible to align the axes of the group rectangle?

Now, when creating a rotated rectangle, the axes of the group are the same as the axes of the model.
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby sdmitch » Sun Jun 10, 2012 7:12 pm

No way to define the axes of a group that I'm aware of.
You can temporarily align the axes to the group when in group edit mode.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby TIG » Sun Jun 10, 2012 8:21 pm

You can [re]set a group's axes...
Find each of the desired-axes in turn and its angle from the SKP's axes - do the three axes in turn...
Apply a rotation-transformation to the group's geometry in turn:
group.entities.transform_entities(transformation, group.entities.to_a)
to rotate the geometry back to be 'axial'.
Then immediately apply the inverse transformation to the group itself:
group.transform!(transformation.inverse)
- again this must be done once for each axis in turn - so that could be three transformations in all ?

The group is now as if you made it 'axially' and then rotated it in 3d afterwards.......
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] Rotated Box [update Jun 10, 2012]

Postby the.pjt » Sun Jun 10, 2012 9:05 pm

thanks for new vertion mr. sdmitch .... nice update ... :bounce:

.. waiting for cylinder plugin too ;)
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby sdmitch » Sun Jun 10, 2012 9:40 pm

TIG, thanks for the info. I guess my next question is what is the advantage or need to do this?
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby jorge2011 » Sun Jun 10, 2012 10:54 pm

sdmitch, when editing a group or component is better to work with the axes perpendicular or parallel to the predominant form (inthis case a square) is simpler drawing
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby sdmitch » Sun Jun 10, 2012 11:11 pm

I agree so when you get into edit mode, right click on the group and choose Align Axes.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch
 
Posts: 617
Joined: Wed Mar 02, 2011 9:21 pm
Name: Sam
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby jorge2011 » Sun Jun 10, 2012 11:14 pm

if I agree, but is simpler if this is automatic
jorge2011
 
Posts: 154
Joined: Thu Jun 02, 2011 5:01 pm
Name: jorge2011
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby Ben Ritter » Mon Jun 11, 2012 2:18 pm

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

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby broomstick » Mon Jun 11, 2012 6:10 pm

a perfect addition to this tool would be an icon to put along side le rectangle icon.

If anybody can teach me, i am willing to do it myself :)
User avatar
broomstick
 
Posts: 360
Joined: Thu Jul 17, 2008 6:21 pm
Location: Naples, Italy

Re: [plugin] Rotated Box [update Jun 10, 2012]

Postby Michaelv » Mon Jun 11, 2012 7:47 pm

broomstick wrote:a perfect addition to this tool would be an icon to put along side le rectangle icon.

If anybody can teach me, i am willing to do it myself :)



Done, see here:
viewtopic.php?f=323&t=45923
Michaelv
 
Posts: 95
Joined: Wed Mar 03, 2010 11:02 pm
Name: Michael

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: ayi1991, Ben Ritter, chrislbj, Elensark, Hirogens, jmmad, pezen, raumwerk, yuceleryilmaz and 8 guests