Trying to create a simple model with a repeating pattern based on a length

Trying to create a simple model with a repeating pattern based on a length

Joel.hagle
Contributor Contributor
748 Views
13 Replies
Message 1 of 14

Trying to create a simple model with a repeating pattern based on a length

Joel.hagle
Contributor
Contributor

The easiest way to describe this is to think of a wall with a given length and height, and a number of studs based on the wall length and distance between each one.

 

Looking at the pattern tool I thought this was a no-brainer, but it appears I am the one with no brain here.  

 

I want to define the spacing between bodies, and have the number of bodies differ based on the length of the pattern.  I am having trouble understanding the relationship between "Distance" and "Start" and they seem to be driving spacing, and it looks like number of bodies can't be defined this way.

 

Perhaps I need to be looking at defining a number of bodies based on some distance another way?

0 Likes
Accepted solutions (1)
749 Views
13 Replies
Replies (13)
Message 2 of 14

davebYYPCU
Consultant
Consultant

Presuming the body sits at the start of the wall, 

 

Length = spacing * count, plus 1 body width.  Will but the plate under the last body.

 

Might help....

 

 

 

 

0 Likes
Message 3 of 14

g-andresen
Consultant
Consultant

Hi,

Everything depends on what is to be set and what is to be calculated. 
If the number of elements is fixed, the length of the individual instances must be calculated with it on the basis of the total length with possible edge distances.
Alternatively, the length of the instances can be set.

Please share the file.

File > export > save as f3d on local drive  > attach it to the post.

 

günther

0 Likes
Message 4 of 14

Joel.hagle
Contributor
Contributor

My understanding is the same as what you are saying, but I can’t get it to work so I must be doing something wrong.

 

I had to leave the house for the night, I will attach the file in the morning.

 

Thanks

0 Likes
Message 5 of 14

Joel.hagle
Contributor
Contributor

Understood, at least I think. However, my totalLength and bodySpacing are user defined parameters and I am trying to solve for the number of bodies based on totalLength and bodySpacing.

 

 

0 Likes
Message 6 of 14

davebYYPCU
Consultant
Consultant
Accepted solution

You need a formula in the parameters.

 

extrpdb.PNGextrpdb1.PNG

Count is a no unit parameter (highlighted)

 

Might help.....

Message 7 of 14

g-andresen
Consultant
Consultant

Hi,

Here is a variant based on object length that includes edge distances.

 

günther

0 Likes
Message 8 of 14

g-andresen
Consultant
Consultant

Hi,

Take a look at this variant.
It requires only 1 central profile and can be created with individual offset.
But it requires odd numbers.

 

 

günther

0 Likes
Message 9 of 14

Joel.hagle
Contributor
Contributor

I was using a Path rather than a Rectangular Pattern, and my count had a unit.  This is working now except not gives me an extra body depending on the my total width.  I need to think about that now.

 

Thanks for the help, I will attach my model so you can see what I am trying to do.

0 Likes
Message 10 of 14

g-andresen
Consultant
Consultant

Hi,

Since you can't read the pattern length from the parameters, I measured it and copied and pasted it into the pattern menu.

 

 

günther

Message 11 of 14

davebYYPCU
Consultant
Consultant

Reference the parameter from the table.

 

Might help.....

0 Likes
Message 12 of 14

g-andresen
Consultant
Consultant

Hi,

From which parameters do you derive this value?

 

blindbase distance.png

 

günther

0 Likes
Message 13 of 14

davebYYPCU
Consultant
Consultant

Dxxx from Model Parameters.

Either a Sketch dimension or the Extrude distance.

Not at the Desktop yet.

 

Might help.....

0 Likes
Message 14 of 14

Joel.hagle
Contributor
Contributor

Thanks to you both, I have this working the way I need it to work and I learned a several new things in the process.

 

Pay attention to unit .vs no unit

My last issue was not being able to roundup, I found the ceil and floor functions and all is right again.  At least until I hit another wall, or make a mistake.

 

Thanks again.