setVariable
Discussion List
-
setVariable adds variables out of order
I have a simple script that ought to create variables in sequence. I am using it in a new parts studio without anything else. My expectation is that the variables should be added (unless something else precludes this) in the order requested. FeatureScript 2716; import(path : "onshape/std/geometry.fs", version : "2716.0");…
-
retrieve setVariable
After creating variables with: import(path : "onshape/std/geometry.fs", version : "1472.0"); const mm = millimeter; annotation { "Feature Type Name" : "write" } export const write_Var = defineFeature(function(context is Context, id is Id, definition is map) precondition { } { setVariable(context, "VarCode1" , 1 * mm);…