[Plugin] Component Array (Updated 27-Mar-2014)

[Plugin] Component Array (Updated 27-Mar-2014)

Postby sdmitch » Wed Sep 21, 2011 4:06 pm

Made SU2014 compatible

Generates a component array on selected face. Input consist of the component to place, the XY spacing, the rotation angle of the grid, if the grid is to be rectangular or triangular, and if components are to be placed vertically or perpendicular to the face.

The point of origin for the grid is placed well outside the face to allow for any rotation of the face itself. A component is placed at each grid point that falls on the face. Depending on the origin of the component, the first component placed in each row my be inside the face boundary and the last component placed may extend outside the face boundary.

Please get the latest version from the PluginStore

Download

6
Last edited by sdmitch on Thu Mar 27, 2014 4:53 pm, edited 2 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] Component Array

Postby majid » Wed Sep 21, 2011 6:00 pm

would you give us a visual tut?
0
My perspective shortcuts book: https://bit.ly/30Tdbce
User avatar
majid 
Top SketchUcator
 

Re: [Plugin] Component Array

Postby wyatt » Wed Sep 21, 2011 8:04 pm

I love this. I know I will use it a lot. Is there any reason the component selection window includes groups? Lots of components include sub-groups and that makes the list quite lengthy. Would it make more sense to only include components? Maybe you have a reason including groups that I'm missing.
0

wyatt 
 

Re: [Plugin] Component Array

Postby sdmitch » Wed Sep 21, 2011 8:44 pm

Wyatt wrote:Is there any reason the component selection window includes groups? Lots of components include sub-groups and that makes the list quite lengthy. Would it make more sense to only include components? Maybe you have a reason including groups that I'm missing.


No your not missing anything. The API model.definitions is suppose to only return components but apparently not. So far I haven't figured out how to filter the groups out.

I doubt if there is a way to distinguish between a sub-component and the component containing it. The best I can do for now is suggest you know the name of the component you want and type the first letter. That will allow you to step through the list to find it.

Oh no it isn't, I've just figured it out. Thanks for the question.
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] Component Array (Update)

Postby wyatt » Wed Sep 21, 2011 9:45 pm

Thank you for updating the script. It works better...groups and sub-components no longer show up. The list now shows each instance as a unique component. Is there a way to filter it so component names only appear once?
0

wyatt 
 

Re: [Plugin] Component Array (Update)

Postby TIG » Wed Sep 21, 2011 10:21 pm

The model.definitions returns ALL definitions - which includes components, groups and images [the last two are just special kinds of component if you think about it].
To make a list of just components loaded into the model use this...
defs=model.definitions
comp_names=[]
defs.each{|d|comp_names << d.name if not d.group? and not d.image?}

You then have a list of all "component" definitions in the model 'by name'...
Use joined_names=comp_names.join("|") for the dialog dropdown...
Later after the user has selected a component by name and pressed OK, to get a reference to that definition from the selected 'comp_name' use...
def_to_use=defs[comp_name]
much as you have done before... ;)
2
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Component Array (Update)

Postby EarthMover » Wed Sep 21, 2011 11:04 pm

Thanks Sam! You came through as always. :thumb: :thumb: It would be great to see this developed even further. Perhaps adding functionality for choosing up to three different components and randomly distributing them in the array. Perhaps also an option to randomize scale. Being that this started as a vegetation plugin, those things would make it great for mass plantings. It's a nice simplified version of component spray.
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] Component Array (Update)

Postby sdmitch » Wed Sep 21, 2011 11:20 pm

TIG, thanks for the tip. I had worked it out a different way but I think I like your method better.
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] Component Array (Update)

Postby sdmitch » Wed Sep 21, 2011 11:22 pm

EarthMover wrote:Thanks Sam! You came through as always. :thumb: :thumb: It would be great to see this developed even further. Perhaps adding functionality for choosing up to three different components and randomly distributing them in the array. Perhaps also an option to randomize scale. Being that this started as a vegetation plugin, those things would make it great for mass plantings. It's a nice simplified version of component spray.



I already did that, at least partially, it's called RandomComponentReplacement.
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] Component Array (Update)

Postby EarthMover » Thu Sep 22, 2011 1:36 am

Great thanks Sam, I'll check it out. Maybe you can make a unified component tools plugin with one toolbar. I'm just being selfish and trying to make my life easier with no regard for your time. :mrgreen: I just finished a project with 60 different kinds of plants spec'd in and it was a nightmare. No worries though, I have a few more keyboard shortcuts left. ;)
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] Component Array (Update)

Postby Justo » Sun Sep 25, 2011 5:03 am

Thanks again Sam.

I'm not sure if anyone else would like this to evolve anymore than it has, but I'll ask anyway! :roll:

Is it possible to have:
The result be grouped or made a component with the [quantity] x [component name] as the new group/component name.
Array grouping.png


The option of having the face and lines surrounding the selection to be removed after component array is run. Although delete key usually does a good job of this if i remember to do so after running plugin...
Array selection.png


I could easily get carried away a few requests! Feel free to say bugger off! ;)
I have played around with the script for use with paved areas (takes me forever... hence the requests)

Thanks
0
Cheers
Justin

Justo 
 

Re: [Plugin] Component Array (Update)

Postby brookefox » Mon Mar 12, 2012 11:58 pm

Thanks for sharing... I guess experimentation may reveal how to best cope with tidiness (arraying strictly within, and even better, trimming to fit within bounds).
component array-1.JPG


On second thought, I guess a situation where that that kind of tidiness is desired is not what this is for.

Joel is working on a remotely similar hatch plugin which is targeted to accomplish these things, but the poor guy has some kind of other life going on.
viewtopic.php?f=323&t=38637
0
~ Brooke
User avatar
brookefox 
 

Re: [Plugin] Component Array (Update)

Postby raineysky » Sat May 19, 2012 6:23 pm

Sam,

I need to make a chain and sproket for a piece of machinery similar to a bicycle chain and sproket assembly. Which one of your plugins is most suitable for this? I have a chain link made into a component. Thank You
0

raineysky 
 

Re: [Plugin] Component Array (Update)

Postby EarthMover » Sat May 19, 2012 6:47 pm

Paul, try either Component Stringer or Shape Bender, both by Chris Fulmer.
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] Component Array (Update)

Postby raineysky » Sat May 19, 2012 7:25 pm

Thanks Earthmover. I do have Shape Bender, which is a wonderful plugin. It's just that I'm a little thick and have to re-learn how to make it work each time. Was hoping Sam had something because his plugins are always very easy to use. I am testing his Comp String plugin right now.
0

raineysky 
 

Re: [Plugin] Component Array (Update)

Postby sdmitch » Sat May 19, 2012 7:43 pm

Comp String is the only thing like that that I have but don't think it will work very well since the components will need to overlap precisely.
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] Component Array (Update)

Postby raineysky » Sun May 20, 2012 12:00 am

Thanks Sam. Working nights now but will give Comp String another shot on my next day off.
0

raineysky 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby sdmitch » Thu Mar 27, 2014 4:54 pm

Made SU2014 compatible.
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] Component Array (Updated 27-Mar-2014)

Postby TIG » Thu Mar 27, 2014 5:33 pm

I have added it to the PluginStore.
http://sketchucation.com/pluginstore?pl ... nent_Array
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby Neeko » Mon Dec 29, 2014 9:37 pm

Thank you.
I was looking for a plugin that would help me "spray" a grass instance regularly on a selected surface to "fill" it up. Now I just have to randomize the rotation of the components with "scale and rotate multiple" and that would make a perfect grass :)
0

Neeko 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Mon Sep 21, 2015 2:38 am

Hello from Theo
This plugin is just about what i am looking for
we are laying steel decking for a flooring company on autocad
sketchup seems to be able to do a better job than most of the 3d cad programs about
revit the office is not interested in vector works is to bulky in its menu structure
to make you productive, and sketchup has some great add ons for detailing etc

How do i get around that fact of having to lay steel decking onto shapes that are not always rectangular on sketchup, ie taking a profile or a component made from this profile and making it fill a sketchup face of any shape.

lets know if your tool can do this or can be modified or if you know of a tool that can do this, these steel profiles are 600 wide of any length that suits its purpose,
concrete floors are poured over this once laid.

many thanks regards Theo e-mail theoolifiers@gmail.com
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby sdmitch » Mon Sep 21, 2015 2:53 pm

tolifiers wrote:Hello from Theo
This plugin is just about what i am looking for
we are laying steel decking for a flooring company on autocad
sketchup seems to be able to do a better job than most of the 3d cad programs about
revit the office is not interested in vector works is to bulky in its menu structure
to make you productive, and sketchup has some great add ons for detailing etc

How do i get around that fact of having to lay steel decking onto shapes that are not always rectangular on sketchup, ie taking a profile or a component made from this profile and making it fill a sketchup face of any shape.

lets know if your tool can do this or can be modified or if you know of a tool that can do this, these steel profiles are 600 wide of any length that suits its purpose,
concrete floors are poured over this once laid.

many thanks regards Theo e-mail theoolifiers@gmail.com


No, Component Array was not designed to do anything like that. My FloorGenerator, which accepts a width and maximum length would be the closest match. If possible, post a sample model that demonstrates what you are trying to do. I have other unpublished plugins that might be adaptable to your needs.
1
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] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Mon Sep 21, 2015 9:25 pm

Hello from Theo

Many thanks for your reply.
Please find attached a detail and sample of steel decking
i am trying to fill an area with the steel decking shape not sure
how to go about it.

I am trying to figure out the best program to make doing these drawings
easier for install and detailing, autocad has been good till now
but as always every thing is wanted faster, and i am not sure that 3d
is the answer , but so far sketchup is looking the better option
to lay decking quickly in 3d, time will tell, vectorworks is a pain to use
revit is ok, but laying decking and trying to trim it is or will be
too time consuming.
sketchup may be the best option if the shape can fill an area quickly ?

there are examples of 3 different shapes as we might find on a building
area where we have to lay different styles of metal decking.

its not easy to do in revit or any cad 3d program with out a lot of hassle
trimming off excess deck manually.

Easy in autocad, just use trim.

3D is another story and i think sketchup will be the easiest program to do this

These steel decking sheet come in any length some span over
2 beams others 3 beams max length for handling is about 10m

i am just trying to find an easy way to fill an area with the sheets
and have it automatically trim off to a defined shape.

the sheets lap at 600mm length ways.

see 3d detail of some sample sheet styles and bolts to hold slab in place.

Thanks Regards Theo
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Mon Sep 21, 2015 9:37 pm

Hello from Theo
screen image attached from autocad so you can see what this office
is doing with steel decking
we are flat out.
Regards Theo
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby sdmitch » Tue Sep 22, 2015 1:38 am

Theo

Doh!!!!! I forgot to mention I'm stuck on SU2014 so I am unable to open the model posted.

The screen shot at least gives me some idea of the problem.
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] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Tue Sep 22, 2015 4:29 am

Hi from Theo opps sorry here is a version 8
thanks for that
Regards from NZ as attached
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Tue Sep 22, 2015 4:34 am

From Theo PS that screen shot is one i am working on right now
One of the worst sites its all sorts of angles
more often they are rectangular in shape with stairs cut out
or offset corners, but this one is all over the place
Autocad is a good option to edit easily
but the office has thoughts on going 3D mmmmm good and bad idea.
it slows things down. So am thinging sketchup is a better option than vector works and revit, and seeing some architects do great detailing using sketchup
no harm in doing the same, so will keep at it.

Thanks Theo
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby pcmoor » Tue Sep 22, 2015 6:32 am

I suggest that " profile builder 2 " would best suited to this layout and take off, the profiles can be trimmed or extended to the angles
0

pcmoor 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby tolifiers » Wed Sep 23, 2015 4:44 am

Hi from Theo
many thanks i will give it a go.
have a busy week.
0

tolifiers 
 

Re: [Plugin] Component Array (Updated 27-Mar-2014)

Postby Klavere » Tue Apr 07, 2020 6:40 pm

First of all thanks a lot for this plugin! It just saved me a lot of time.

I know this post is old, but this is the best plugin of its kind and I just have a question:


Is there a way to update this plugin, so it's possible to pick several faces at the same time?

When you work with small surfaces it's really hard, and slow, to pick them all


And if it's not possible, is there any plugin that does exactly that?


Have a good day
0

Klavere 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: dklein56, meydina12345, pinoy and 10 guests