Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

A rule for adding and removing a solid body using a bounded pitch and length dimension.

maz
Contributor

A rule for adding and removing a solid body using a bounded pitch and length dimension.

maz
Contributor
Contributor

Hello.I would need a rule for this problem.

1. Add or remove the "crossbar" body when changing the length so that the "control dimension" is in the range of 80-90mm.
If it doesn't work, get as close as possible to these dimensions.

2. At the same time mark the newly created "crossbar" so that they are also in "Rectangular pattern_B".

TEST_001.png

0 Likes
Reply
245 Views
2 Replies
Replies (2)

JelteDeJong
Mentor
Mentor

I think you can do part 1 without iLogic. You can use the following expressions for the parameters:

Number_of_crossbar = ceil(( Length - Width_crossbar ) / 80 mm) + 1 ul

spacing = ( Length - Width_crossbar ) / ( Number_of_crossbar - 1 ul )

JelteDeJong_0-1673986310347.png

and then use this in "Rectangular pattern_A"

JelteDeJong_1-1673986772445.png

 

 

Jelte de Jong
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.

EESignature


Blog: hjalte.nl - github.com

0 Likes

maz
Contributor
Contributor

Its not working.
There are 2 more crossbars than there should be.01.png02.png

0 Likes