-
Is there a getAllVariables()? Specifically Configuration Variables.
Is there a way of accessing a list (map) of all (configuration) variables in a Part Studio? Perhaps a way of accessing the input of the build(config) function? Basically a getAllVariables() is what I'm after, in the spirit of getAttributes(...qEverything()...)
-
Cannot resolve an expression to make a dimension dependent of 3 variables. Someone can help ?
I'm not familiar with scripting. Maybe this is a very simple problem. PLease see the attached PDF file ...
-
Base model and variable change
I am looking for a way how to derived a part and change height variable. I am designing set of boxes for electronics. All of them have same base model, but with different height. The simplest way is to use derived feature and change the height variable. But this is not possible right now. So I am copying the base model…
-
"general" variables between parts studio
hello, i am doing some complex assembly with a lots of parts and i would like to make some variables general, what i meen with general, that it exist in all the parts studio that i am doing, i could do the two parts in same tab that way i could use the variable but what i would like is to do it in different tabs and at the…
-
Featurescript to select the variable
Is it possible to use featurescript to select the #variable array? I have a #Variable array that I would like to select using UI booleans.
-
Writing a measured value to a variable in the model tree and keeping it updated.
Essentially I'm trying to recreate a 'sensor' or User-Defined Measurement. In the simplest case I have an arc, would like to evaluate it's length, then store that number in a variable so that I can reference it later in my model tree. I'm just jumping into featurescript so it's not immediately obvious to me how to do this,…
-
Creating multiple parts that vary only in input variables?
I'm building a cabinet which will have 24 drawers. Of them, 20 have unique dimensions. My prototype drawer part studio can produce all 20 of them by just varying width & height parameters; everything else is parametric and works out beautifully. Now... is there some better way to produce my 20 unique parts than just making…
-
Altering part properties breaks assembly?
I am building an app that is integrated with onShape and the app pushes values to onShape variables. I have used those variables to set the length of a strut in a test truss. I built the truss in an assembly and everything was fine. I then updated the value of the length of the struts and somehow the mates on the truss…
-
Change variable values after mergeContext / importDerived?
Now, I might be dreaming, but I'd really love this to be possible. Is there a way to Change variable values after using mergeContext or importDerived to import geometry from another PS? This would allow several morphologically different instances of the same geometry. I figured since variables are added to the context,…
-
Can't do addition/subtraction with Measure Distance custom feature
Hi, I'm trying to do some 'easy' calculations in a variable and found this odd. I'm using the Measure Distance custom feature to get a distance in the model. I left the default name #distance. I assign it to a new variable to see the value, works fine. I assign #distance*2 to a variable, still fine. I assign #distance+20…
-
Rounding Calculated Variables to Pattern number of Instances
Can anyone offer any tips for how to round off or convert calculated variables to integers so that the calculated variable works for patterns?(number of instances patterned?) Surely this should be fairly simple in FeatureScript but not sure how to approach it.
-
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?
-
Defining variables and prompts
I am just starting to explore FeatureScript and the documentation - while decent, is insufficient. My background - I have been coding since the days of DOS. I can code in BASIC (geez, my age shows), C++, VisualBASIC, VisualLISP, AutoLISP, JAVA, html, and a few other extremely esoteric languages that are specific to their…
-
Global Variables
My project has a few Part Studios. They use the same variables (at the least most of them overlap). Is there a way to define a variable that works across multiple Part Studios? For example: I have a bunch of frames and panels in one Part Studio. To make things easier, I created tubs that connect those frame together in a…