Integer Value in Parameter

Integer Value in Parameter

hdvideo2015
Participant Participant
4,871 Views
4 Replies
Message 1 of 5

Integer Value in Parameter

hdvideo2015
Participant
Participant

I want to use a parameter when entering number of holes in a rectangular pattern. The formula I want to use is floor(OverallLength/60).  The function returns the correct value, but only if a unit is defined.

 

For it to work in the Rectangular Pattern Quantity field, it needs to be an integer with no units defined. 

Is there a way to use the floor() function in a parameter with No Units?

 

Thanks, Ed

0 Likes
Accepted solutions (1)
4,872 Views
4 Replies
Replies (4)
Message 2 of 5

HughesTooling
Consultant
Consultant
Accepted solution

If I understand correctly just divide by your units, this should work, floor(OverallLength/60) / 1mm, or 1in if you are working in inches.

Or you can shorten it to floor(OverallLength/60mm)

 

Mark

Mark Hughes
Owner, Hughes Tooling
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


0 Likes
Message 3 of 5

hdvideo2015
Participant
Participant

That did it - Thanks!

0 Likes
Message 4 of 5

m.hofmannCBJWH
Community Visitor
Community Visitor

Thanks

0 Likes
Message 5 of 5

m.hofmannCBJWH
Community Visitor
Community Visitor

thanks

0 Likes