Parametric modeling

Parametric modeling

Josh3GG88
Enthusiast Enthusiast
865 Views
7 Replies
Message 1 of 8

Parametric modeling

Josh3GG88
Enthusiast
Enthusiast

If anyone can help me, any help will be appreciated. 

 

I am looking for a function for a parametric template. I have a board that i want to split into 48 inches, but when the remainder gets smaller than 12", i want it to split into equal part. is there anyway possible to do that? I know if I would have an IF...THEN...ELSE option i would be able to.

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

stiller.design
Collaborator
Collaborator

there is no option for IF, THEN, ELSE

maybe you can try something the MAX(XX,XX) or the FLOOR, CEILING expression

stillerdesign_0-1661312975059.png

 

Message 3 of 8

Warmingup1953
Advisor
Advisor

Yes that is what I have seen done for similar "logic" requirements as in this Tutorial...https://www.youtube.com/watch?v=-BPcktQwIIY&ab_channel=LearnEverythingAboutDesign

 

Disclaimer:...I've never utilised it myself!

Message 4 of 8

stiller.design
Collaborator
Collaborator
really good tutorial channel !!! not easy to find good advanced tutorials on youtube
0 Likes
Message 5 of 8

TrippyLighting
Consultant
Consultant

@stiller.design wrote:
really good tutorial channel !!! not easy to find good advanced tutorials on youtube

Yep, that is because advanced tutorials often require more than 15 minutes.


EESignature

Message 6 of 8

Josh3GG88
Enthusiast
Enthusiast

Yes, i agree that is very good, but it does not quite give me the answer that i am looking for. Would it be possible to find an alternative to this function I will try my best to write:

 

Length = 100

BoardSplit = 48

Rem = Length % BoardSplit

SplitPoint = Ceil(Length/BoardSplit)

 

If rem < 12 then

    min(Length/SplitPoint;BoardSplit)

else

    BoardSplit

end if

 

This function applies to an Offset plane from the end.

 

It would be very nice if i could find anything that would work for fusion. 

Thanks.

0 Likes
Message 7 of 8

KristianLaholm
Advocate
Advocate
Accepted solution

Here is my suggestion:
Skärmbild 2022-08-25 180950.jpg

 

To my knowledge there is a bug with modulus (x % y) if the parameters have units, that's why all my parameters are No Units.
Test file attached, solid/surface components are for visual checking the parameters.

Message 8 of 8

Josh3GG88
Enthusiast
Enthusiast
this works great! Thanks.
0 Likes