Component Pattern with Parametric modeling

Component Pattern with Parametric modeling

jmckone9Z5PD
Contributor Contributor
714 Views
7 Replies
Message 1 of 8

Component Pattern with Parametric modeling

jmckone9Z5PD
Contributor
Contributor

Is there a way to set up the component pattern function to allow for parametric modelling changes?  The assembly is a basic window with the size of all components driven from OsmW (outside measurement Width) and OsmH.  All the major components work however, items (such as staples) that are modelled using 'component pattern' do not change with size.  The rule would be quite simple - OsmW/8 would give the quantity required for width, however if there is a way to use this in 'component pattern' I have not found it.

0 Likes
Accepted solutions (1)
715 Views
7 Replies
Replies (7)
Message 2 of 8

kacper.suchomski
Mentor
Mentor

Hi

Component patterns handle parametric equations in exactly the same way as all other parametric modeling commands.

(view in My Videos)


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.


Message 3 of 8

jmckone9Z5PD
Contributor
Contributor

What I was trying should work but I get this error - I know why, I can't figure out what to do about it.

 

jmckone9Z5PD_0-1757853326896.png

 

Here is the user parameters table - I have set this up so OsmW and OsmH are in the the assembly and are used to define the overall size of the window.

 

jmckone9Z5PD_1-1757853463754.png

With the stapes set in 1" from edge of frame the spacing should work out to (18 in - 2 in)/8 in = 2 ul.   In this case it work out to be an even number, however the value should be rounded to nearest integer.

 

This is a look at the window frame with staples.

 

jmckone9Z5PD_2-1757854104730.png

 

 

 

0 Likes
Message 4 of 8

kacper.suchomski
Mentor
Mentor

@jmckone9Z5PD wrote:

What I was trying should work but I get this error - I know why, I can't figure out what to do about it.

jmckone9Z5PD_0-1757853326896.png


We don't know what you entered in the equation window or what the entire parameter structure looks like.

Attach your files.

 

 


@jmckone9Z5PD wrote:

With the stapes set in 1" from edge of frame the spacing should work out to (18 in - 2 in)/8 in = 2 ul.   In this case it work out to be an even number, however the value should be rounded to nearest integer.


Also, your description is unclear – you mentioned that the interval should be... and then entered an equation with a dimensionless result.

The interval must be in units of length, not cardinality.

 

Describe exactly what you have and what you're missing.

Which parameters are fixed and which are calculated.

And in which file you intend to edit variables to rebuild the model.


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 5 of 8

jmckone9Z5PD
Contributor
Contributor
The spacing is consistent at 8" - it is only the number of staples that need to be calculated depending on the OsmW or OsmH.
0 Likes
Message 6 of 8

dan_inv09
Advisor
Advisor

Please show the formula you are using.

 

If it is coming out in/ul when it needs to be ul then you need to look at your formula more carefully, something isn't "adding up" quite right.)

Message 7 of 8

jmckone9Z5PD
Contributor
Contributor
Accepted solution
Just had to change the formula from (OsmW - 2 in) / 8 ul to (OsmW - 2 in) / 8 in. Once this worked, I then modified the formula to round(( OsmW - 2 in ) / 8 in). I have tested this over a few different widths and it works.
Thanks for the assistance.


Message 8 of 8

SBix26
Consultant
Consultant

You may also want to consider the ceil function (or floor function) in place of round.  ceil((OsmW - 2 in) / 8 in) will always round down to the nearest integer value, so you don't get an extra staple when the distance is halfway to the next interval.


Sam B

Inventor Pro 2026.1.1 | Windows 11 Home 24H2
autodesk-expert-elite-member-logo-1line-rgb-black.png