Variable array

Variable array

steven.coxVCM6J
Advocate Advocate
116 Views
8 Replies
Message 1 of 9

Variable array

steven.coxVCM6J
Advocate
Advocate

Hi All,

 

I hate writing this post because there is a lot of solutions here, but I cannot seem to figure this out.

 

I want to create an array in an assembly that has a Max Spacing and is based on the width.

 

Ceil() and this unitless issue seems to be tripping me up.  However, I am also using an imported Width parameter.

 

I will use this same setup in multiple locations (i.e. _Top) so it will be very useful to make work.

 

I am pretty sure I saw a video on this once but cannot get YouTube on my work computer!!!

 

Thanks so much for the help,

 

Steven

 

stevencoxVCM6J_0-1759406847991.png

 

 

0 Likes
Accepted solutions (2)
117 Views
8 Replies
Replies (8)
Message 2 of 9

kacper.suchomski
Mentor
Mentor

Hi

In your equation there is a division (in/in) which logically cancels out the units.


Kacper Suchomski

EESignature


YouTube - Inventor tutorials | LinkedIn | Instagram

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 3 of 9

steven.coxVCM6J
Advocate
Advocate

So why does the Ceil(Width / BF_MaxSpacing_Top) - 1ul Not work?

 

Or will that not accomplish what I want?  Maybe I am going the wrong direction.

 

Thanks, Steven

0 Likes
Message 4 of 9

steven.coxVCM6J
Advocate
Advocate

I guess one important note I left out of the original post is that I want to equally space BF across the Width.

 

Just more Parameters I supose.

0 Likes
Message 5 of 9

andrewiv
Advisor
Advisor

Your instance count has to be an integer if you want to use it as a value for a pattern.  I would set the formula to Ceil(Width/BF_MaxSpacing_Top)+1.  Then your spacing formula can be Width/(BF_InstanceCount_Top-1).

Andrew In’t Veld
Designer / CAD Administrator

0 Likes
Message 6 of 9

steven.coxVCM6J
Advocate
Advocate

For some reason the InstanceCount formula does not work.  What am I missing?

 

Thanks, Steven

 

stevencoxVCM6J_3-1759412294598.png

 

 

0 Likes
Message 7 of 9

CCarreiras
Mentor
Mentor
Accepted solution

must be :

ceil

not:

Ceil

CCarreiras

EESignature

Message 8 of 9

andrewiv
Advisor
Advisor
Accepted solution

@CCarreiras is correct.  That's my mistake, ceil cannot be capitalized.

Andrew In’t Veld
Designer / CAD Administrator

Message 9 of 9

steven.coxVCM6J
Advocate
Advocate

You have got to be kidding me!!  I knew it was going to something I was overlooking but never expected that.

 

Thanks so much!!!!!