parameter equation for number of instances along length
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
modeling a pipe routing set up. going a certain distance.
i have a standard length of pipe, they are joined by flanges
i have a distance to travel
the distance is not perfectly divisible by the pipe length
i have a model parameter "pipeLen" in inches
i have a model parameter "distance" in feet and inches
i have a top level sketch with a radius that is dimensioned as "distance" parameter
i have a pattern of pipes going from the edge of the circle to the center or the circle (or the "distance" parameter"
i have a unitless user parameter named "pipeInstances" that is (round("distance"/"pipeLen)
i have that parameter "pipeInstances" as the number of instances in the pattern
the goal is to set the pattern so that when i shorten or lengthen it (because distance is not decided yet) the number of standard length pipes willl change up or down while the length of each pipe stays the same. i somehow need to make the number of instances in the unitless parameter always come out as a rounded down integer, basically act like the "int()" command in python (im very new to python)
then the strategy for making up the distance of the last pipe is to join it to the endpoint of the distance sketch radius and extrude backwards by ("distance"-("instances" x "pipeLen") this should make the last length of pipe (cut to fit) meet the last instance of standard length pipe even though they are not joined.
need a unitless parameter represented by an equation (a length in inches divided by another length in inches) to always come out as a rounded down integer. "round" function doesnt seem to be working in user parameter equation.