variables
Discussion List
-
Can Custom Feature Scripts Create Variables Automatically?
Would there be a way for me to create a feature script in which it will make a variable automatically with the only input from a person being the value. For ex. I'm trying to create a feature script to make bolt hole patterns that require an equation that uses multiple variables. I need to create variables that you can…
-
Editing logic breaking reference to variables in array parameter?
Both of these custom features have array parameters: Texture & Freeform Spline. Input variables are lost when a new array item is added. Is there a way to fix this? @Evan_Reese, you may be interested in the solution to this if there is one.
-
how to assign a variable to control number of sides of a polygon?
I want to assign a variable to control number of sides of a polygon. But it won't accept the input.
-
Configurations vs Configurable
In production having configurations for various Hardware is awesome. Washers/spacers/pins/shoulder screws/orings/bumpers/cable management/ ... name it. I can assign PNs and Descriptions for discrete items. However, in R&D I often just want to try various sizes of washers/pins/screws/... without having to go in and make a…
-
Grow/increase a dimension in a pattern?
I want to create a circular pattern of a rectangular extrusion feature. As the feature rotates, I want the length of the rectangle to increase. Is this possible? I've tried a sketch pattern where the length is an equation (1+#rotangle/300) and the starting angle of the rectangle is defined by the dimension #rotangle, but…
-
Is it possible to use design an element or structure with Onshape?
I need to back up some ideas with calculations in order to prove validity ( and relieve a few decision makers of liability). Onshape has so many powerful features, this seems like a natural fit. Thank you, Ken Harris
-
String Parameter won't reference a Text Config Variable
Hey Guys, I'm trying to use a custom feature to assign materials to parts. But I'm getting tripped up by the string parameter. I can't seem to configure the parameter using a text config variable? Presumably because "#" becomes part of a string and loses it's ability to signify another variable? Here is the annotation in…
-
Variable number of revolved features on cone
I'm trying to create ribs on a tilted cone, to form a tube connector. I want to be able to change the number of ribs, so I have created #rib_count. My problem is that I cannot get the ribs to change in number correctly. I tried with a linear pattern within a sketch, but such patterns cannot use variables (I have read that…
-
Can a specific configuration be activated by a variable in the Part studio ?
Somebody knows a way to make a specific configuration (in P.S.) conditional to a value in that P.S. EX: A configuration where a part is suppressed, is activated by a specific value of a dimension measured with “Measure distance” (MD).
-
Variable WORLD_ORIGIN not found Variable Z_DIRECTION not found
Why is the code broken?I do not get it const lineToRotateAround = line(WORLD_ORIGIN, Z_DIRECTION); //????????? const angleIncrement = (360 * degree) / MyCount; var transforms = []; var instanceNames = []; //definition.count -> MyCount for (var i = 1; i < MyCount; i += 1) // Iterar de 1 -> (definition.count - 1) porque ya…
-
Changing variable of part inside assembly
Hello all.I am new to OnShape, and trying to get my head around it. (I know parametric modelling from Fusion360).I have a part, called WoodStick, that has 3 dimentions, length width and height. I'm trying to add the part in my assembly, and modfiy those variables from there, but with no luck.In-Context doesn't create a…