Trying to make a line go to 0mm depending on if an angle is set to 90 degrees. Help with equations and functions available in fusion

Trying to make a line go to 0mm depending on if an angle is set to 90 degrees. Help with equations and functions available in fusion

SlowEvo
Contributor Contributor
1,564 Views
15 Replies
Message 1 of 16

Trying to make a line go to 0mm depending on if an angle is set to 90 degrees. Help with equations and functions available in fusion

SlowEvo
Contributor
Contributor

I have a model that has a line recessed in with an angled line attached to it. If set to 90 degrees(where it will lay parallel with that line) I want the line to be 0.

Sketch.jpg

I'm still working on the function for the bottom line however when the top value in the rectangle is set to 90 I want the bottom circled line to be 0.

Sketch2.jpg

With no functions or advanced stuff beyond my scope of knowledge it sits on top of that line. I want it to push out. Also having trouble being the one parameter is degrees and the other is mm.

 

The model will have an LED strip fit in that channel so it would need to stay wide enough to fit in when it's flush(not angled).

 

See the "Channel Profile" sketch in uploaded .f3d.

 

Thank you

 

 

0 Likes
Accepted solutions (2)
1,565 Views
15 Replies
Replies (15)
Message 2 of 16

davebYYPCU
Consultant
Consultant

Not sure I have it yet, 

 

8mm LED face, rotates on the short upright.  Top corner will adjust but only so far (22 degrees) before it becomes unusable.

 

nsihdb.PNG

 

Might help...

0 Likes
Message 3 of 16

SlowEvo
Contributor
Contributor

"Not sure I have it yet" Do you mean you arent sure what I mean or haven't figured out the solution yet?

 

The LED strip needs to fit in the channel at all angles whether facing straight down or to the sides(90 to 0 degrees). Once it starts getting closer to 90(facing straight down), the shorter width line that it pivots on will have to get smaller until it's not there anymore once the channel is faced straight down(90degrees) in order to keep the channel the same usable width. Hope that made sense.

 

 

0 Likes
Message 4 of 16

davebYYPCU
Consultant
Consultant
Accepted solution

Correct I was not sure you want what you asked for.

 

8 + 2 = 10

 

nsih1db.PNG

 

When the blue 8mm line is turned 90 and becomes vertical, what would you like to do with the other 3 blue lines?

If you can change the frame height to 10.6mm it will work, but

 

See if you can improve / set it up - in this version.

 

Might help...

 

0 Likes
Message 5 of 16

SlowEvo
Contributor
Contributor

russo_keith_0-1698409065550.jpeg

It looks confusing where the measurements are placed. The 45° pivot is the one I’m interested in, it pivots at the bottom horizontal line. Ignore the top(90°) angle. 

The way I placed that angle dimension, 90° makes it fully horizontal and 0° is vertical. That may cause confusion. 

As far as it going 22° and then being unusable can be ignored. I’ll figure that part out. You can focus on it being able to go from 45° to 90°(which, again, would be horizontal). 

It’s the horizontal line(showing 2.667) that I want to be scaled to 0mm long as the 8mm line(ledWidth I think I called it) gets closer to 90°(horizontal)

 

I can explain better with more pictures when I’m out of work if you’re still confused. 

 

0 Likes
Message 6 of 16

davebYYPCU
Consultant
Consultant

I am not confused, all done in my file, currently 89 degrees.

zero to 90 no problem, but might not be what you want, 

change dimensions to suit as you need it.

 

Might help…..

0 Likes
Message 7 of 16

jeff_strater
Community Manager
Community Manager

Rather than trying to do this in one sketch, which is likely to be tricky, you might consider configurations for this (this assumes you are a commercial customer - configs is not available to personal users).  Using configs, though, you could have two sketches, one for each configuration.

 

Also, zero is not a valid dimension value.  There is a long and heated debate on this subject here:  zero-is-a-number 


Jeff Strater
Engineering Director
0 Likes
Message 8 of 16

SlowEvo
Contributor
Contributor

*Replied to the wrong person*

0 Likes
Message 9 of 16

davebYYPCU
Consultant
Consultant

I can’t see how you would be using mixed units,  because you would be needing trigonometry functions, (tan, cos, sin, etc) - No?

 

Might help….

0 Likes
Message 10 of 16

davebYYPCU
Consultant
Consultant

Configs will change to other sketches?

Or you can build heaps of models? (Quickly).

 

 

 

 

0 Likes
Message 11 of 16

jeff_strater
Community Manager
Community Manager

configs can change dimension values in sketches, but that was not what I was thinking.  I was thinking you would create two different sketches, one for each "family" of the design - one for when that line was there, and one for when it was not.  Then, you can suppress one sketch or the other in the configuration.  It might be harder than it sounds at first, though.  I will say, though, that having a zero-length line in a sketch would worry me.  That type of degenerative geometry can cause all kinds of problems.  That is what I was trying to avoid here...


Jeff Strater
Engineering Director
0 Likes
Message 12 of 16

laughingcreek
Mentor
Mentor

@SlowEvo wrote:..., is there ways to have equations with different units? For example depending on the degrees, mm will change?

you just have to manage your units by appropriately dividing or multiplying be a unit so you end up with the right unit. the equation "45mm(45deg/90deg)" will evaluate to 22.5mm and would be a valid input for a length dimension for instance because the degs cancels each other out.

 

it seems to me you could look at this a deferent way.  right now you have the pivot point for the angled line anchored to the endpoint of the horizontal line, so to get the pivot point to move you need to shorten the line.  instead try just having the anchor point coincident along the line (not the endpoint), then move the pivot point along the line with a driving dimension.  to get around the zero dimension problem, measure from the other side instead.  attached is an example of what I mean.  I set this up to so the pivot starts at ledWidth/3 when the angle is 45deg, and lineally transitions to 0 as the angle is adjusted to 90deg. (try adjusting the angle from 45 to 90 and observe the results)

0 Likes
Message 13 of 16

SlowEvo
Contributor
Contributor

That exact idea randomly came to me earlier, put the coincident on the line rather than the end of the line and have it slide. I didn't have much time to play around but what you uploaded is almost perfect.

 

Another thing, which I didn't mention because I hadn't really thought about it, is when the angle begins getting closer to 90deg, lets say 70deg, it isn't slid out enough. It creates a pinch point. An LED strip is going to have to fit in that channel and therefor part of it probably wouldn't fit because it would be pinched, it'd also be hard to install the led strip.

 

Pinch point.png

 

Two things I can think of is have it slide out further than it currently does as it gets closer to 90deg or adjust the channel width a bit longer as it approaches 90deg to compensate for pinch point.

0 Likes
Message 14 of 16

SlowEvo
Contributor
Contributor

Oops I didn't see that you attached a file on your first reply, was viewing on mobile. This is very close to what I was looking for, certainly pointing me in a direction I hadn't thought of. I may play around with the elliptical curve and some parameters and equations but you certainly helped me out. Thanks so much!

 

One last question, is there ways to have equations with different units? For example depending on the degrees, mm will change?

0 Likes
Message 15 of 16

laughingcreek
Mentor
Mentor
Accepted solution

@SlowEvo wrote:

...For example depending on the degrees, mm will change?


I answered that in my previous reply, and also did it by example in the model I uploaded.  did you look?

as far as the pinch point goes, I was trying to answer the question as it was put to us, but I don't understand why the "channel" isn't , well, Channel shaped. that would avoid the pinch point. see NEW attached-

 

 

0 Likes
Message 16 of 16

SlowEvo
Contributor
Contributor

I asked that question before responding to you. I do see the equation and am trying to figure it all out, how it works and what not. My math skills are beyond sub-par not to mention things like this are fairly new to me.

 

And yes, the way you added the channel makes more sense. I was thinking the channelHeight paramater(2mm) would act as the 1mm line you added. I see now how what you did makes a lot more sense. I was basing it off of an example picture I found online and it didn't have that 1mm line to indeed make it a true channel.

 

Thanks so much for the help. I might have more questions as I further come closer to finishing it. Like right now I can't remember how or why I added the d35 model parameter.

 

I know its related to lightBlockHeight. At that point I was throwing hail marys out there to get someone along the lines of what I was going for and then would further refine.

 

I'm also needing to figure out exactly what to do with the light blocking part. Since I plane on 3d printing this, printing it in the current orientation would be impossible without supports and I want to avoid supports unless REALLY necessary. One thing I'm thinking is to make it always be at the bottom of that sketch. That is, colinear with bottomWidth. That or making a completely separate piece that will sit on top.

0 Likes