-
Parametric curve FS by Mahir
I just recently learned about this feature script and used it to create some spur gears, and it worked great. Now I'm trying to create a parametric curve to make a cycloid gear, the equation I've created a dummy variable t, set it equal to 1, and then inserted a parameter t afterwards, but I keep getting an error code…
-
I can't get a cycloid's platted points to scale in a uniform way
How do I get the points to scale without distortion? This section of my code takes a bunch of input parameters and creates a parametric function that plots points that are part of the line for a cycloid. The if statement, if (eclen), is a boolean that, when true, is supposed to scale the points by adding (ec_shell-cymod)…
-
use variable in assembly
Hi, I've been trying to use variable in assembly, but I'm not successful. Who knows how can use a variable from part in the assembly? Thank you
-
Variable name as Value
Hello There, I am new to Onshape, I came from Shapr3D, because of much bigger compexity of SW (sadly app is not that good), and I just discovered magic of variables and I really like it a lot, Now I am working on my own frames, I did quite nice setup for rectangular profiles. And I want to have parametric text in Cut list.…
-
Referencing a Configuration Cell Value in Another Cell
I am looking to use a cell value from my configuration table to drive other formulas within my configuration cells [in an assembly]. This would be similar to how formulas in excel our built for instance if I am using a value in A1 cell to calculate a value in B1 ie (B1 = A1 +2). I am not looking to use my #variable input…
-
FeatureScript parametric surface
Hi there Working with FeatureScript Parametric Surface: https://cad.onshape.com/documents/57a62df8e4b03de4c9fcf154/w/f6d71f3d862b522902efcd68/e/ece65382fcd820281a9ee704 I'm trying to model a shape derived from the superellipsoid model: where a, b, c, p0, p1 is known. So if i express z = f(x,y), i can create the following…
-
"non driving" dimension as variable?
Hello Could you help me to understand how I can use a "non driving" dimension as a variable? I have a square and a variable which defines this square by the length of its diagonal. Now I need to use the length of the square's side as a variable for the next operation (say extrude). Is it possible to do it in onShape?…
-
FeatureScript: Evaluate generic expression
I'm currently working on an equation driven 3D curve, but I'm having trouble getting FeatureScript to evaluate string expressions as values. For example, if #T=45, then setVariable(context, "X", "tan(#T)") should set #X to 1. Instead, it just gets stored as a string. Any ideas?
-
Accessing Feature Browser thru Featurescript
Is it possible to access the #Variable in the feature browser by Featurescript?
-
Parametric Surface from f(x,y)
I'm trying to build upon the Parametric Curve FS to create a Parametric Surface. The intention is to be able to input a function Z = f(#x,#y) and have that create a lofted surface. However, I'm running into problems getting the z equation to accept 2 inputs (x,y). @ilya_baran, @kevin_o_toole_1, maybe one of you can take a…
-
Variable - placement on User Interface
Would it make sense to have the (x) Variable icon on the left of the UI since it is ideally a precursor to effective parametric design? Along with Sketch?
-
Round to 1 decimal place with the equation's in the sketch dialogue.
I found that round( ) works in the dimension dialogue, but want to round to 1 decimal place. i.e 1.333 to 1.3. Is this possible?