[plugin] Rotated Box [updated 30-Mar-2014]

[plugin] Rotated Box [updated 30-Mar-2014]

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

Updated to be SU 2014 compatible. Not tested in SU 2013
Fixed displacement some time caused by dimension entry.

In response to "draw box with 3 click"
http://forums.sketchucation.com/viewtopic.php?f=323%26amp;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.
0
Last edited by sdmitch on Sun Mar 30, 2014 1:30 pm, edited 7 times in total.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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:
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

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
1
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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.
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Rotated Box

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

My vote, 3 point.

Thanks

Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

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
0

jorge2011 
 

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?
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Rotated Box

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

yes
0

jorge2011 
 

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.
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

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
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

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.
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

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.
0
--pupil forever...------
User avatar
urgen 
 

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
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Rotated Box

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

I think about a snapping point, edge vertice etc..
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

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:

0

the.pjt 
 

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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

jorge2011 
 

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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.......
0
TIG
User avatar
TIG 
Global Moderator
 

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 ;)
0

the.pjt 
 

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?
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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
0

jorge2011 
 

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

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
0

jorge2011 
 

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

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

Sam, thank you.
0

Ben Ritter 
 

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 :)
0
User avatar
broomstick 
 

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
0

Michaelv 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: DiRi73 and 22 guests

Visit our sponsors: