Iteration
Discussion List
-
Linear pattern some circles and change their diameters from an array?
Is is possible to have a circle used on a sketch change it's diameter each time it's used in a linear pattern? as in, stepping from one circle to the next changing the size of the circle? #pin_number: 0 #pin_sizes: [3, 5, 6, 7, 8][#pin_number] and then use #pin_sizes[linear pattern increment] as the diameter for the…
-
Fitting surface to complex iterative approximation? [co-planar, tapered helical spur gears]
I've been toying around with something similar to @rodrigo_rivas_costa 's Bevel Gears script, but for spur + helix + tapered + inner [ring] gears. Think helical spur gears like you'd get from the usual script, but with a taper towards the outer edge. Analytical solutions like Rodrigo's are beyond my math skills, but I've…
-
Extruding in for loop
I am working on a mortise and tendon joint in feature script. I know there is already one that exists, but it does not do exactly what I want. This also pushes me to finally learn FS. FeatureScript 543; import(path : "onshape/std/geometry.fs", version : "543.0"); annotation { "Feature Type Name" : "MortisetAndTennon"…
-
order of iteration For loop for FACE query
I have seen the path method for getting the correct order of edges, is there a way i can do it for faces as well? It creates the stairs, but as you know, it will not iterate thorugh the query in any specific order. Any suggestions? <div> var allfaces is Query = qEverything(EntityType.FACE);</div><br><div> var allfaces1 is…