SketchUcation Plugin Store

 

 

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

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby sdmitch » Tue Jun 12, 2012 3:55 pm

Version 1.2 has been posted. It aligns the axes to the box if grouping.
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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby the.pjt » Mon Jun 18, 2012 1:42 pm

when we work in a group of group , the box that this plugin makes goes to the model ( upper level in outliner )


OUTLINER VIEW

model ( the box goes here )
.........group 1
..............group 2
....................group 3 ( we want a box here )
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby sdmitch » Mon Jun 18, 2012 2:50 pm

the.pjt wrote:when we work in a group of group , the box that this plugin makes goes to the model ( upper level in outliner )


OUTLINER VIEW

model ( the box goes here )
.........group 1
..............group 2
....................group 3 ( we want a box here )


You may want the box to be part of an existing group but who else will. You can add any box to an existing group by selecting and cutting it then open for edit the group you want to add it to and do a "Paste in Place".
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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby the.pjt » Mon Jun 18, 2012 6:03 pm

Mr. sdmitch
are you joking ?
cut and paste ???? ... thank a lot .... do you think that I didn't know anything about Cut and Paste !?!?!?!? Am I crazy or stupid ?!?!?
you could also learn me the basis of SU .. how to make rectangle inside group and then Pushpull !! :) ...
ok .... thanks for teaching .... :D ... but please don't consider me as a total mindless and stupid person ...
.
.
OK ... but, as you know this plugin should be a time saver ...
And when a user is working trough a group and/or component it takes shorter time for him/her to create a box with a few clicks inside it .. rather than Cut , Set Axes , Paste Set axes agane ... or Rectangle , Rotate , Pushpul , Select , Make group ....
isn't it ??
..

OK ... we will welcome if you do this ... and thanks agane for the time you spent for us and you coddings , dear Sam ... ;)
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby Ken » Mon Jun 18, 2012 6:51 pm

the.pjt

After making a selection of the object you wish to move to another layer, look in the edit menu, and click on the "Cut" menu item. after clicking on the "Cut" menu the object will disappear. Then drill down to the layer you wish. After arriving at your selected layer, in the edit menu click on the "Paste in Place" menu item and presto, you have a copy of the selected object at the new layer. Good solution to moving objects from layer to layer. Much better than Ctrl-C and Ctrl-V.

Ken
Last edited by Ken on Mon Jun 18, 2012 6:59 pm, edited 1 time in total.
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] Rotated Box [updated Jun 12, 2012]

Postby sdmitch » Mon Jun 18, 2012 6:54 pm

the.pjt since you are not "a total mindless and stupid person", code it yourself. When this all started, you only wanted a "box in 3 click", now you want me to customize this just for you. Sorry but I'm done with this plugin. I have done all that I ever intend to do.
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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby the.pjt » Mon Jun 18, 2012 9:39 pm

I never want you to code for ME .... this is a plugin for all users .. and please don't think that all of your works is for me ...

when somebody used this plugin for making a box inside a group , it makes it out of active group
... and I thought it's better to tell you " it's better to add this in feature ... "
.. I think you hear : " do it , outher wise I will fire you !!!! " ... ok ..

it's better to say : " sorry , I beleve that it should be fixed ,but I haven't enought time , tell your request to some one else " ... instead of " how to Cut and paste " .. isn't it ?

Untitled.png



but ... if you to update it in the future please fix it to makes the box in current group ( for outher users not me )
Please, register (free) to access all the attachments on the forums.
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby sdmitch » Tue Jun 19, 2012 4:45 pm

OK, any other users think this is problem or desired feature?
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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby thomthom » Tue Jun 19, 2012 5:12 pm

sdmitch wrote:OK, any other users think this is problem or desired feature?

I haven't used the tool, but common convention for tools is to create the entities they create within model.active_entities instead of model.entities. It also allows for the best flexibility. Since it is the convention with the native tools and pretty much all custom tools it is confusing if the geometry is created in a different context.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby the.pjt » Tue Jun 19, 2012 6:10 pm

wow .... thanks thomas .. thanks ... I did it ... hey smitch , Idid it ... I'm not stupid ...

I'm not a ruby master , all I know is to know how to change UI parts of o code .... but thanks thomthom ...
thanks for key knowledge (active_entities)
I changed the " @ent = @mod.active_entities " parametr of this code in the "def initialize " part of it
and it works ... now it creates the box inside active groups ...
thanks ..


dear sdmitch ... I think It could much easier for you ( as a ruby master ) to do that little changes ( just a few charecters : active ) easeir than teaching me how to "cut and paste " ... :D ... and tou could make us happy with this little change ...

but ... dear sdmitch ,thanks for all of coding you done.. all 282 line . and thanks a lot for making this great plugin and Fulfilling a request from a user ... thanks for all Sam :) .. thanks for the time that you spent for me


download my edited version ... :thumbd:
Rotated Box.rb

thanks agane thomthom ...
please delet this post if there is any copyright issue ... ;)
Please, register (free) to access all the attachments on the forums.
Last edited by the.pjt on Tue Jun 19, 2012 6:16 pm, edited 1 time in total.
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby brookefox » Tue Jun 19, 2012 6:11 pm

sdmitch wrote:OK, any other users think this is problem or desired feature?


From the peanut gallery, if the choice is to create within or outside of the current group, I'd say within would be preferable for me.

Thanks for asking.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby the.pjt » Tue Jun 19, 2012 6:38 pm

I have updated this loader plugin with lastest versions of sdmitch's plugins :geek:

:enlight: plus my little tweaks : the box now creates the group inside the current active group

viewtopic.php?t=45923#p410167


download the last version here : :thumbd:

3Pts_Tools.rbz
Please, register (free) to access all the attachments on the forums.
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby jorge2011 » Tue Jun 19, 2012 10:05 pm

the.pjt or sdmitch.
This change does not work in my pc. I use sketchup 8 and windows xp sp3.
You can correct this error? really very useful tool
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 [updated Jun 12, 2012]

Postby thomthom » Tue Jun 19, 2012 10:16 pm

jorge2011 wrote:the.pjt or sdmitch.
This change does not work in my pc. I use sketchup 8 and windows xp sp3.
You can correct this error? really very useful tool

Can you explain what "doesn't work" please? Do you get error messages or just unexpected results?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby jorge2011 » Tue Jun 19, 2012 10:54 pm

does not work, create the geometry inside a group. Or create a group inside another group
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 [updated Jun 12, 2012]

Postby the.pjt » Tue Jun 19, 2012 11:06 pm

jorge2011 wrote:the.pjt or sdmitch.
This change does not work in my pc. I use sketchup 8 and windows xp sp3.
You can correct this error? really very useful tool


maybe becouse of I'm not a programmer ,I am just a newbie ... It works well on my ms win 8 ,SU 8 M3 .... I don't have any apple device .. :( ... so maybe it doesn't work on mac , I don't know
and ... It could be better if the author have modified it , not me ... I think he dislikes me :D ..

dear ThomThom .. Or MR sdmitch .... is it posible to check my editings ? ? I will welcome ...
thanks a lot ... ;)

all of thing that I have done is : just changing line 32 (notepad++)
old :
Code: Select all
class RotatedBox
def initialize
@mod = Sketchup.active_model
@ent = @mod.entities

new
Code: Select all
class RotatedBox
def initialize
@mod = Sketchup.active_model
@ent = @mod.active_entities

and then it creates every thing in active group ... am I wrong ?
the.pjt
 
Posts: 208
Joined: Sun Aug 09, 2009 1:20 pm
Location: iran
Name: pejman

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby Rich O Brien » Tue Jun 19, 2012 11:13 pm

@the.pjt

Can you respond to the PM I sent regards this in-post plugin uploading?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8317
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby sdmitch » Wed Jun 20, 2012 12:13 am

jorge2011 wrote:does not work, create the geometry inside a group. Or create a group inside another group


The change the.pjt made will only add the current box to a group if you have the group open for edit it does not open the group automatically. It should have no effect on whether or not the current box is created as a group or not. That will still depend on grouping being On or 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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [plugin] Rotated Box [updated Jun 12, 2012]

Postby jorge2011 » Wed Jun 20, 2012 4:37 pm

sdmitch, sorry, I do not understand your explanation. my English is not good.

You can create a group inside another group, or a grometria within a group or component?
You can add this feature?

thank you very much for your kindness and your time
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 [updated Jun 12, 2012]

Postby TIG » Wed Jun 20, 2012 4:46 pm

If I might interject. :geek:
All native and most 3rd-party tools add new geometry etc into the "current context" [model.active_entities] - even if the added 'object' itself is a group of new geometry.
To always force new stuff into model.entities as its context will be very confusing, unless the two entities' contexts are not the sample.
So if you are editing a component or a group and you use this tool to add a 'box' then the newly made object will currently then be added outside of the current context... which is not what you'd expect at all - e.g. if you draw a 'line' it's added inside the context, not outside in the model.entities :roll:
It IS a very simple adjustment to the code to make these tools intuitive in the way it adds its geometry like the native tools...
:ugeek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13998
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby sdmitch » Thu Jun 21, 2012 12:21 am

For all of you who have been anxiously awaiting the change of mod.entities to mod.active_entities, your wait is over and Version 1.2.1 is for you.
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/Make
SketchUp use: hobby
Level of SketchUp: Beginner

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

Postby brookefox » Thu Jun 21, 2012 1:35 am

I'm all over it. Thank you, Sam.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

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

Previous

Return to Plugins

Who is online

Users browsing this forum: borislf, Hortax, littlecoles, mehdiZ, OmarSun, TMLEE, tobi and 8 guests